]> www.infradead.org Git - users/hch/configfs.git/commitdiff
usb: typec: altmodes/displayport: fixup drm internal api change vs new user.
authorDave Airlie <airlied@redhat.com>
Thu, 26 Oct 2023 21:53:50 +0000 (07:53 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 26 Oct 2023 21:55:41 +0000 (07:55 +1000)
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>
drivers/usb/typec/altmodes/displayport.c

index ddfb5b6ace4f7e058bc837a45f08f0860ae09a39..aea9d2fd0e769a0e7f6d2073f7dab90c082b5158 100644 (file)
@@ -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");
                        }