Skip to content

Commit 2cccd35

Browse files
jannaumarcan
authored andcommitted
drm: apple: iomfb: Use drm_kms_helper_connector_hotplug_event
Avoid device wide hotplugs as DCP knowns the affected connector. Signed-off-by: Janne Grunau <[email protected]>
1 parent ba8d4f2 commit 2cccd35

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

drivers/gpu/drm/apple/iomfb.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,11 @@ void dcp_hotplug(struct work_struct *work)
243243
* display modes from atomic_flush, so userspace needs to trigger a
244244
* flush, or the CRTC gets no signal.
245245
*/
246-
if (connector->base.state && !dcp->valid_mode && connector->connected) {
247-
drm_connector_set_link_status_property(
248-
&connector->base, DRM_MODE_LINK_STATUS_BAD);
249-
}
246+
if (connector->base.state && !dcp->valid_mode && connector->connected)
247+
drm_connector_set_link_status_property(&connector->base,
248+
DRM_MODE_LINK_STATUS_BAD);
250249

251-
if (dev && dev->registered)
252-
drm_kms_helper_hotplug_event(dev);
250+
drm_kms_helper_connector_hotplug_event(&connector->base);
253251
}
254252
EXPORT_SYMBOL_GPL(dcp_hotplug);
255253

0 commit comments

Comments
 (0)