]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/bridge: lt8912b: fix corrupted image output
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 22 Sep 2022 12:43:05 +0000 (14:43 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 14 Nov 2022 10:25:32 +0000 (11:25 +0100)
commitc568b6cee60a95fd79a3928c2f91e52debe1482b
treebeec1579fc80f647a6ea09584bc10889bdc7d713
parentaa980fb773ebfa7a6c34fdcda3fa005ad86bc1d6
drm/bridge: lt8912b: fix corrupted image output

BugLink: https://bugs.launchpad.net/bugs/1995517
[ Upstream commit 051ad2788d35ca07aec8402542e5d38429f2426a ]

Correct I2C address for the register list in lt8912_write_lvds_config(),
these registers are on the first I2C address (0x48), the current
function is just writing garbage to the wrong registers and this creates
multiple issues (artifacts and output completely corrupted) on some HDMI
displays.

Correct I2C address comes from Lontium documentation and it is the one
used on other out-of-tree LT8912B drivers [1].

[1] https://github.com/boundarydevices/linux/blob/boundary-imx_5.10.x_2.0.0/drivers/video/lt8912.c#L296

Fixes: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Acked-by: Adrien Grassein <adrien.grassein@gmail.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220922124306.34729-4-dev@pschenker.ch
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/bridge/lontium-lt8912b.c