drm: bridge: dw_hdmi: Fix ELD is not updated issue
authorSandor Yu <Sandor.yu@nxp.com>
Fri, 4 Aug 2023 06:11:45 +0000 (14:11 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 4 Aug 2023 08:31:41 +0000 (10:31 +0200)
commit6db96c7703edd6e37da8ca571dfe5e1ecb6010c1
treeb3b128dde22074c8c00e6127bee00508845180e7
parentb0e9267d4ccce9be9217337f4bc364ca24cf7f73
drm: bridge: dw_hdmi: Fix ELD is not updated issue

The ELD (EDID-Like Data) is not updated when the HDMI cable
is plugged into different HDMI monitors.
This is because the EDID is not updated in the HDMI HPD function.
As a result, the ELD data remains unchanged and may not reflect
the capabilities of the newly connected HDMI sink device.

To address this issue, the handle_plugged_change function should move to
the bridge_atomic_enable and bridge_atomic_disable functions.
Make sure the EDID is properly updated before updating ELD.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230804061145.2824843-1-Sandor.yu@nxp.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c