Searched hist:b03380805b5a184b7017dc428a53c8e1e9c9f99c (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/i2c/ |
| H A D | designware_i2c.c | b03380805b5a184b7017dc428a53c8e1e9c9f99c Thu Oct 20 14:48:28 UTC 2016 Marek Vasut <marex@denx.de> i2c: designware: Avoid overwriting the cmd_data register
Make sure the driver writes the cmd_data register only once per read transfer instead of doing so potentially repeatedly.
In case the read transfer didn't finish quickly enough, the loop in the driver code would spin fast enough to write the same value into the cmd_data register again before re-checking whether the transfer completed, which would cause another spurious read transfer on the bus.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Stefan Roese <sr@denx.de> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: Heiko Schocher <hs@denx.de> Cc: Dinh Nguyen <dinguyen@opensource.altera.com> Cc: Chin Liang See <clsee@altera.com>
|