]> git.itanic.dy.fi Git - linux-stable/commit
usb: typec: altmodes/displayport: Signal hpd low when exiting mode
authorRD Babiera <rdbabiera@google.com>
Mon, 9 Oct 2023 21:00:58 +0000 (21:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:54:22 +0000 (11:54 +0200)
commit9ed14f807f4f768ab06de395c1dfea7a31eea55e
tree729ca87062dbe3ded368107a91c0f81b5821b034
parentf25a13d318b8eb6fb48673376b585a990e605e93
usb: typec: altmodes/displayport: Signal hpd low when exiting mode

[ Upstream commit 89434b069e460967624903b049e5cf5c9e6b99b9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/typec/altmodes/displayport.c