[Intel-gfx] [PATCH v2] drm/i915: Cancel the hotplug work when unregistering the connector

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon Oct 9 09:41:29 UTC 2017


Op 06-10-17 om 19:18 schreef Chris Wilson:
> When we unregister the connector, we may have a pending hotplug work.
> This needs to be cancel early during the teardown so that it does not
> fire after we have freed the connector. Or else we may see something like:
Well the nice thing is even if it's called modeset_retry_work, it just sets the link status to bad for DP.

I worry it might be too early, wouldn't intel_dp_connector_destroy be a better place? At that point we know userspace can no longer use it,
because the last reference has been removed.

~Maarten


More information about the Intel-gfx mailing list