diff options
author | Maxime Ripard <maxime@cerno.tech> | 2021-07-07 11:51:11 +0200 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-07-15 10:50:05 +0200 |
commit | 776efe800feda95a29cefecce1ce36cc27d70b29 (patch) | |
tree | 050e9c1e736774f37808f6a20a5dd3d67604b763 /drivers/nfc | |
parent | 868d043f056016b8002897b536d56bb35f87ed2e (diff) | |
download | linux-776efe800feda95a29cefecce1ce36cc27d70b29.tar.bz2 |
drm/vc4: hdmi: Drop devm interrupt handler for hotplug interrupts
The hotplugs interrupt handlers are registered through the
devm_request_threaded_irq function. However, while free_irq is indeed
called properly when the device is unbound or bind fails, it's called
after unbind or bind is done.
In our particular case, it means that on failure it creates a window
where our interrupt handler can be called, but we're freeing every
resource (CEC adapter, DRM objects, etc.) it might need.
In order to address this, let's switch to the non-devm variant to
control better when the handler will be unregistered and allow us to
make it safe.
Fixes: f4790083c7c2 ("drm/vc4: hdmi: Rely on interrupts to handle hotplug")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210707095112.1469670-3-maxime@cerno.tech
Diffstat (limited to 'drivers/nfc')
0 files changed, 0 insertions, 0 deletions