Searched hist:"24 f9c6bbc7d5e5e276dea32a81ade71f0e6b56ae" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/i2c/ |
| H A D | mvtwsi.c | 24f9c6bbc7d5e5e276dea32a81ade71f0e6b56ae Thu Jul 21 09:57:11 UTC 2016 mario.six@gdsys.cc <mario.six@gdsys.cc> i2c: mvtwsi: Handle zero-length offsets properly
Zero-length offsets are not properly handled by the driver. When a read operation with a zero-length offset is started, a START condition is asserted, and since no offset bytes are transferred, a repeated START is issued immediately after, which confuses the controller.
To fix this, we send the first START only if any address bytes need to be sent, and keep track of the expected start status accordingly.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de>
|