mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
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>
This commit is contained in:
parent
0ecf4aa32b
commit
5258dfd4a6
@ -306,7 +306,8 @@ static int dp_altmode_vdm(struct typec_altmode *alt,
|
|||||||
dp->data.status = 0;
|
dp->data.status = 0;
|
||||||
dp->data.conf = 0;
|
dp->data.conf = 0;
|
||||||
if (dp->hpd) {
|
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;
|
dp->hpd = false;
|
||||||
sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd");
|
sysfs_notify(&dp->alt->dev.kobj, "displayport", "hpd");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user