aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorGravatar Dave Airlie <airlied@redhat.com> 2023-10-27 07:53:50 +1000
committerGravatar Dave Airlie <airlied@redhat.com> 2023-10-27 07:55:41 +1000
commit5258dfd4a6adb5f45f046b0dd2e73c680f880d9d (patch)
treef123d38f456460a44e97288a56e4858506487a7c /drivers/usb
parentMerge tag 'amd-drm-next-6.7-2023-10-20' of https://gitlab.freedesktop.org/agd... (diff)
downloadlinux-5258dfd4a6adb5f45f046b0dd2e73c680f880d9d.tar.gz
linux-5258dfd4a6adb5f45f046b0dd2e73c680f880d9d.tar.bz2
linux-5258dfd4a6adb5f45f046b0dd2e73c680f880d9d.zip
usb: typec: altmodes/displayport: fixup drm internal api change vs new user.
usb: typec: altmodes/displayport: Signal hpd low when exiting mode and drm: Add HPD state to drm_connector_oob_hotplug_event() sideswiped each other. Signal disconnected always. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/typec/altmodes/displayport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec/altmodes/displayport.c
index ddfb5b6ace4f..aea9d2fd0e76 100644
--- a/drivers/usb/typec/altmodes/displayport.c
+++ b/drivers/usb/typec/altmodes/displayport.c
@@ -306,7 +306,8 @@ static int dp_altmode_vdm(struct typec_altmode *alt,
dp->data.status = 0;
dp->data.conf = 0;
if (dp->hpd) {
- drm_connector_oob_hotplug_event(dp->connector_fwnode);
+ drm_connector_oob_hotplug_event(dp->connector_fwnode,
+ connector_status_disconnected);
dp->hpd = false;
sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd");
}