]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/i2c-ddc: Do not fail writes
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 1 Mar 2018 11:05:45 +0000 (11:05 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 1 Mar 2018 11:05:45 +0000 (11:05 +0000)
commit839a2b28d01290c96554be42c3faaa05c847c2e3
tree25dd41bbf716e885af0196d523a563b703673e9f
parentaa88d7ad28eafaa7ac187d5bbb0c46f987fac3a4
hw/i2c-ddc: Do not fail writes

The tx function of the DDC I2C slave emulation was returning 1
on all writes resulting in NACK in the I2C bus. Changing it to
0 makes the DDC I2C work fine with bit-banged I2C such as the
versatile I2C.

I guess it was not affecting whatever I2C controller this was
used with until now, but with the Versatile I2C it surely
does not work.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Message-id: 20180227104903.21353-4-linus.walleij@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/i2c-ddc.c