qemu-e2k/hw/i2c
Linus Walleij 839a2b28d0 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>
2018-03-01 11:05:45 +00:00
..
aspeed_i2c.c aspeed/i2c: introduce a state machine 2017-06-02 11:51:49 +01:00
bitbang_i2c.c hw/i2c/bitbang_i2c: Handle NACKs from devices 2016-11-07 10:01:15 +00:00
bitbang_i2c.h
core.c i2c: Move the bus class to i2c.h 2018-03-01 11:05:45 +00:00
exynos4210_i2c.c hw/i2c: QOM'ify exynos4210_i2c.c 2016-06-14 15:59:13 +01:00
i2c-ddc.c hw/i2c-ddc: Do not fail writes 2018-03-01 11:05:45 +00:00
imx_i2c.c arm: Uniquely name imx25 I2C buses. 2017-01-20 11:15:06 +00:00
Makefile.objs i2c: Add a CONFIG_I2C master switch to the configuration files 2018-02-05 18:09:45 +01:00
omap_i2c.c Replace all occurances of __FUNCTION__ with __func__ 2018-01-22 09:46:18 +01:00
pm_smbus.c Merge remote-tracking branch 'origin/master' into HEAD 2018-01-11 22:03:50 +02:00
ppc4xx_i2c.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
smbus_eeprom.c qdev: Replace cannot_instantiate_with_device_add_yet with !user_creatable 2017-05-17 10:37:00 -03:00
smbus_ich9.c hw/i2c: remove old i386 dependency 2017-12-18 17:07:02 +03:00
smbus.c i2c: Allow I2C devices to NAK start events 2017-01-09 11:40:20 +00:00
versatile_i2c.c hw/i2c: QOM'ify versatile_i2c.c 2016-06-14 15:59:13 +01:00