drm/connector: send hotplug uevent on connector cleanup
authorjsg <jsg@openbsd.org>
Mon, 9 Jan 2023 04:09:22 +0000 (04:09 +0000)
committerjsg <jsg@openbsd.org>
Mon, 9 Jan 2023 04:09:22 +0000 (04:09 +0000)
From Simon Ser
d988f0bcf579b4bcb0b7aba217a882ec150bcc2a in linux-6.1.y/6.1.4
6fdc2d490ea1369d17afd7e6eb66fecc5b7209bc in mainline linux

sys/dev/pci/drm/drm_connector.c

index a7c69cf..7b75d6a 100644 (file)
@@ -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);