Hsin-Yi Wang a2fa86e2bb drm/bridge: anx7625: Ensure bridge is suspended in disable()
[ Upstream commit 4d5b7daa3c610af3f322ad1e91fc0c752ff32f0e ]

Similar to commit 26db46bc9c67 ("drm/bridge: parade-ps8640: Ensure bridge
is suspended in .post_disable()"). Add a mutex to ensure that aux transfer
won't race with atomic_disable by holding the PM reference and prevent
the bridge from suspend.

Also we need to use pm_runtime_put_sync_suspend() to suspend the bridge
instead of idle with pm_runtime_put_sync().

Fixes: 3203e497eb76 ("drm/bridge: anx7625: Synchronously run runtime suspend.")
Fixes: adca62ec370c ("drm/bridge: anx7625: Support reading edid through aux channel")
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Xuxin Xiong <xuxinxiong@huaqin.corp-partner.google.com>
Reviewed-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/20240118015916.2296741-1-hsinyi@chromium.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-31 16:17:11 -08:00
..
2023-09-19 12:27:56 +02:00
2023-03-10 09:34:33 +01:00
2022-10-05 11:24:12 -07:00
2022-08-16 12:46:26 +02:00
2023-11-28 17:07:03 +00:00
2023-08-30 16:10:57 +02:00
2024-01-31 16:17:08 -08:00
2024-01-25 15:27:32 -08:00
2022-08-26 14:22:59 +02:00
2023-08-30 16:10:57 +02:00
2023-05-11 23:03:07 +09:00
2022-07-13 10:54:56 +10:00
2022-06-28 07:56:32 +02:00
2022-09-06 10:56:04 +02:00
2023-05-30 14:03:20 +01:00
2023-02-22 12:59:46 +01:00
2022-10-07 17:04:10 -07:00