Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <rdbabiera@google.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240223002302.3937235-2-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

RD Babiera and committed by
Greg Kroah-Hartman
5424a442 0e287901

+2 -1
+2 -1
drivers/usb/typec/altmodes/displayport.c
··· 164 164 } else if (!(con & DP_CONF_CURRENTLY(dp->data.conf))) { 165 165 ret = dp_altmode_configure(dp, con); 166 166 if (!ret) { 167 - dp->state = DP_STATE_CONFIGURE; 167 + dp->state = dp->plug_prime ? DP_STATE_CONFIGURE_PRIME : 168 + DP_STATE_CONFIGURE; 168 169 if (dp->hpd != hpd) { 169 170 dp->hpd = hpd; 170 171 dp->pending_hpd = true;