drm/bridge: it6505: Guard bridge power in IRQ handler
authorPin-yen Lin <treapking@chromium.org>
Wed, 9 Nov 2022 09:52:27 +0000 (17:52 +0800)
committerRobert Foss <robert.foss@linaro.org>
Wed, 14 Dec 2022 16:03:02 +0000 (17:03 +0100)
commit5eb9a4314053bda7642643f70f49a2b415920812
tree6637f446c8fd6d2617fbeba8a74af3836e225ae3
parent94914b8594a4e471f688f276fe583dbea17209ba
drm/bridge: it6505: Guard bridge power in IRQ handler

Add a pair of pm_runtime_get_if_in_use and pm_runtime_put_sync in the
interrupt handler to make sure the bridge won't be powered off during
the interrupt handlings. Also remove the irq_lock mutex because it's not
guarding anything now.

Fixes: ab28896f1a83 ("drm/bridge: it6505: Improve synchronization between extcon subsystem")
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221109095227.3320919-1-treapking@chromium.org
drivers/gpu/drm/bridge/ite-it6505.c