]> xenbits.xensource.com Git - people/aperard/linux.git/commit
drm/bridge: parade-ps8640: Ensure bridge is suspended in .post_disable()
authorPin-yen Lin <treapking@chromium.org>
Tue, 9 Jan 2024 12:04:57 +0000 (20:04 +0800)
committerDouglas Anderson <dianders@chromium.org>
Wed, 17 Jan 2024 17:29:40 +0000 (09:29 -0800)
commit26db46bc9c675e43230cc6accd110110a7654299
tree0ce3e5e9a156d30b7db5f8d2d7d9b3610f1305f3
parent3eb791c891aa91603a5fbbfea940f8acf5f17d45
drm/bridge: parade-ps8640: Ensure bridge is suspended in .post_disable()

The ps8640 bridge seems to expect everything to be power cycled at the
disable process, but sometimes ps8640_aux_transfer() holds the runtime
PM reference and prevents the bridge from suspend.

Prevent that by introducing a mutex lock between ps8640_aux_transfer()
and .post_disable() to make sure the bridge is really powered off.

Fixes: 826cff3f7ebb ("drm/bridge: parade-ps8640: Enable runtime power management")
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240109120528.1292601-1-treapking@chromium.org
drivers/gpu/drm/bridge/parade-ps8640.c