[PATCH 1/2] drm/bridge: lt9611uxc: read the flash back in read mode

From: Dmitry Baryshkov

Date: Tue Nov 24 2026 - 18:13:31 EST


After flashing the firmware the driver reads the flash back to verify
it, but the read-back never switches the flash controller from the
write setup (0x5e = 0xdf) to reading (0x5e = 0x5f), so the data it
gets does not match what is in the flash. On an SM8350-HDK the
read-back differed from the image although the bridge came up with
the new firmware afterwards.

Set 0x5e to 0x5f before each page read, as the vendor driver does.

Fixes: 0cbbd5b1a012 ("drm: bridge: add support for lontium LT9611UXC bridge")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
---
drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c
index b3bb7f2cebb3..6a7d479e86f6 100644
--- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c
+++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c
@@ -587,6 +587,7 @@ static void lt9611uxc_firmware_write_page(struct lt9611uxc *lt9611uxc, u16 addr,
static void lt9611uxc_firmware_read_page(struct lt9611uxc *lt9611uxc, u16 addr, char *buf)
{
struct reg_sequence seq_read_page[] = {
+ REG_SEQ0(0x805e, 0x5f),
REG_SEQ0(0x805a, 0xa0),
REG_SEQ0(0x805a, 0x80),
REG_SEQ0(0x805b, (addr >> 16) & 0xff),

--
2.47.3