Skip to content
Commit 98703e4e authored by Adrián Larumbe's avatar Adrián Larumbe Committed by Neil Armstrong
Browse files

drm: bridge: dw_hdmi: fix connector access for scdc



Commit 5d844091 ("drm/scdc-helper: Pimp SCDC debugs") changed the scdc
interface to pick up an i2c adapter from a connector instead. However, in
the case of dw-hdmi, the wrong connector was being used to pass i2c adapter
information, since dw-hdmi's embedded connector structure is only populated
when the bridge attachment callback explicitly asks for it.

drm-meson is handling connector creation, so this won't happen, leading to
a NULL pointer dereference.

Fix it by having scdc functions access dw-hdmi's current connector pointer
instead, which is assigned during the bridge enablement stage.

Fixes: 5d844091 ("drm/scdc-helper: Pimp SCDC debugs")
Signed-off-by: default avatarAdrián Larumbe <adrian.larumbe@collabora.com>
Reported-by: default avatarLukas F. Hartmann <lukas@mntre.com>
Acked-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
[narmstrong: moved Fixes tag before first S-o-b and added Reported-by tag]
Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230601123153.196867-1-adrian.larumbe@collabora.com
parent e30cb059
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment