summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPin-yen Lin <treapking@chromium.org>2024-09-26 12:29:09 +0300
committerDouglas Anderson <dianders@chromium.org>2024-10-03 23:24:33 +0300
commit574c558ddb68591c9a4b7a95e45e935ab22c0fc6 (patch)
treef0608b148bea380878777609723d4c217ccd0dd3
parent00ae002116a14c2e6a342c4c9ae080cdbb9b4b21 (diff)
downloadlinux-574c558ddb68591c9a4b7a95e45e935ab22c0fc6.tar.xz
drm/bridge: it6505: Drop EDID cache on bridge power off
The bridge might miss the display change events when it's powered off. This happens when a user changes the external monitor when the system is suspended and the embedded controller doesn't not wake AP up. It's also observed that one DP-to-HDMI bridge doesn't work correctly when there is no EDID read after it is powered on. Drop the cache to force an EDID read after system resume to fix this. Fixes: 11feaef69d0c ("drm/bridge: it6505: Add caching for EDID") Signed-off-by: Pin-yen Lin <treapking@chromium.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240926092931.3870342-3-treapking@chromium.org
-rw-r--r--drivers/gpu/drm/bridge/ite-it6505.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c
index f372c05360f2..7ff17aa14b01 100644
--- a/drivers/gpu/drm/bridge/ite-it6505.c
+++ b/drivers/gpu/drm/bridge/ite-it6505.c
@@ -3107,6 +3107,8 @@ static __maybe_unused int it6505_bridge_suspend(struct device *dev)
{
struct it6505 *it6505 = dev_get_drvdata(dev);
+ it6505_remove_edid(it6505);
+
return it6505_poweroff(it6505);
}