]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: uniphier: issue STOP only for last message or I2C_M_STOP
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 31 Aug 2018 14:30:47 +0000 (23:30 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 2 Sep 2018 21:50:43 +0000 (23:50 +0200)
commit38b809b9d4ea68d9b6d0f0e98d51cd4975736358
treed62d120f08f9cae3d7357d450fcd5b55b5e27da9
parent77e0a4623a7dc6c49e4b731092b7a6d5605e640c
i2c: uniphier: issue STOP only for last message or I2C_M_STOP

This driver currently emits a STOP if the next message is not
I2C_MD_RD.  It should not do it because it disturbs the I2C_RDWR
ioctl, where read/write transactions are combined without STOP
between.

Issue STOP only when the message is the last one _or_ flagged with
I2C_M_STOP.

Fixes: e69eb47aca36 ("i2c: uniphier: add UniPhier FIFO-less I2C driver")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-uniphier.c