diff options
author | RD Babiera <[email protected]> | 2024-02-23 00:23:03 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-03-05 13:06:36 +0000 |
commit | 5424a44276ee60d39335ba037c7e142fad4a259a (patch) | |
tree | 1eedb550c08fab5b2907128d6a7678a2cda44259 | |
parent | 0e28790195fa65fde41fa127a89e0903388f6285 (diff) |
usb: typec: altmodes/displayport: send configure message on sop'
When the port is setting the pin configuration when no configuration is
chosen, the DisplayPort driver will not send Configure to the cable plug
if it's available. Add transition to DP_STATE_CONFIGURE_PRIME.
Fixes: 71ba4fe56656 ("usb: typec: altmodes/displayport: add SOP' support")
Signed-off-by: RD Babiera <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/usb/typec/altmodes/displayport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec/altmodes/displayport.c index 5a80776c7255..867f9796f8a8 100644 --- a/drivers/usb/typec/altmodes/displayport.c +++ b/drivers/usb/typec/altmodes/displayport.c @@ -164,7 +164,8 @@ static int dp_altmode_status_update(struct dp_altmode *dp) } else if (!(con & DP_CONF_CURRENTLY(dp->data.conf))) { ret = dp_altmode_configure(dp, con); if (!ret) { - dp->state = DP_STATE_CONFIGURE; + dp->state = dp->plug_prime ? DP_STATE_CONFIGURE_PRIME : + DP_STATE_CONFIGURE; if (dp->hpd != hpd) { dp->hpd = hpd; dp->pending_hpd = true; |