mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
drm: bridge/dw-hdmi: fix 4 block edid read error
msgs[0].addr will be 0x30 when read edid with more than 2 block. but still a read edid operation with write DDC_ADDR to HDMI_I2CM_SLAVE register.So fix it. Change-Id: I5f0cd9172acd4a68d5b54eaf99f17b45385a4263 Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
This commit is contained in:
@@ -629,6 +629,8 @@ static int dw_hdmi_i2c_xfer(struct i2c_adapter *adap,
|
||||
hdmi_writeb(hdmi, 0x00, HDMI_IH_MUTE_I2CM_STAT0);
|
||||
|
||||
/* Set slave device address taken from the first I2C message */
|
||||
if (addr == DDC_SEGMENT_ADDR && msgs[0].len == 1)
|
||||
addr = DDC_ADDR;
|
||||
hdmi_writeb(hdmi, addr, HDMI_I2CM_SLAVE);
|
||||
|
||||
/* Set slave device register address on transfer */
|
||||
|
||||
Reference in New Issue
Block a user