From 5653e77e8e149556dd2bd2c0f9fe6fb39fd9a948 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 28 Oct 2023 10:44:08 +0000 Subject: [PATCH] Revert "usb: typec: altmodes/displayport: Signal hpd low when exiting mode" This reverts commit 9ed14f807f4f768ab06de395c1dfea7a31eea55e which is commit 89434b069e460967624903b049e5cf5c9e6b99b9 upstream. It breaks the android ABI and if this is needed in the future, can be brought back in an abi-safe way. Bug: 161946584 Change-Id: I4b22c70ef3ba8b03807052be2d4cdd5d060f3f76 Signed-off-by: Greg Kroah-Hartman --- drivers/usb/typec/altmodes/displayport.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec/altmodes/displayport.c index 2ba1ba5e3a8d..19d9965874cb 100644 --- a/drivers/usb/typec/altmodes/displayport.c +++ b/drivers/usb/typec/altmodes/displayport.c @@ -294,11 +294,6 @@ static int dp_altmode_vdm(struct typec_altmode *alt, case CMD_EXIT_MODE: dp->data.status = 0; dp->data.conf = 0; - if (dp->hpd) { - drm_connector_oob_hotplug_event(dp->connector_fwnode); - dp->hpd = false; - sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd"); - } break; case DP_CMD_STATUS_UPDATE: dp->data.status = *vdo;