From 9f78f3a5e56027ed62e1afea8b63a6f273b29cd0 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 9 Jan 2023 04:09:22 +0000 Subject: [PATCH] drm/connector: send hotplug uevent on connector cleanup From Simon Ser d988f0bcf579b4bcb0b7aba217a882ec150bcc2a in linux-6.1.y/6.1.4 6fdc2d490ea1369d17afd7e6eb66fecc5b7209bc in mainline linux --- sys/dev/pci/drm/drm_connector.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/pci/drm/drm_connector.c b/sys/dev/pci/drm/drm_connector.c index a7c69cf1ee9..7b75d6ab23b 100644 --- a/sys/dev/pci/drm/drm_connector.c +++ b/sys/dev/pci/drm/drm_connector.c @@ -582,6 +582,9 @@ void drm_connector_cleanup(struct drm_connector *connector) mutex_destroy(&connector->mutex); memset(connector, 0, sizeof(*connector)); + + if (dev->registered) + drm_sysfs_hotplug_event(dev); } EXPORT_SYMBOL(drm_connector_cleanup); -- 2.20.1