usb: typec: altmodes/displayport: Signal hpd low when exiting mode

Upon receiving an ACK for a sent EXIT_MODE message, the DisplayPort
driver currently resets the status and configuration of the port partner.
The hpd signal is not updated despite being part of the status, so the
Display stack can still transmit video despite typec_altmode_exit placing
the lanes in a Safe State.

Set hpd to low when a sent EXIT_MODE message is ACK'ed.

Fixes: 0e3bb7d6894d ("usb: typec: Add driver for DisplayPort alternate mode")
Cc: stable@vger.kernel.org
Signed-off-by: RD Babiera <rdbabiera@google.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20231009210057.3773877-2-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by RD Babiera and committed by Greg Kroah-Hartman 89434b06 cf97c5e0

Changed files
+5
drivers
usb
typec
altmodes
+5
drivers/usb/typec/altmodes/displayport.c
··· 304 304 typec_altmode_update_active(alt, false); 305 305 dp->data.status = 0; 306 306 dp->data.conf = 0; 307 + if (dp->hpd) { 308 + drm_connector_oob_hotplug_event(dp->connector_fwnode); 309 + dp->hpd = false; 310 + sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd"); 311 + } 307 312 break; 308 313 case DP_CMD_STATUS_UPDATE: 309 314 dp->data.status = *vdo;