]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: stm32f7: fix first byte to send in slave mode
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 30 Sep 2019 15:28:01 +0000 (17:28 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 24 Oct 2019 18:52:17 +0000 (20:52 +0200)
commit25d58e162783b3388e5c291e473e28df983fec02
treeca3cc41c54c915d2af76e2f9bbe43786e730b2ff
parent6161ce130bacf8070eb4992243f86bec2a1b98ce
i2c: stm32f7: fix first byte to send in slave mode

The slave-interface documentation [1] states "the bus driver should
transmit the first byte" upon I2C_SLAVE_READ_REQUESTED slave event:
- 'val': backend returns first byte to be sent
The driver currently ignores the 1st byte to send on this event.

[1] https://www.kernel.org/doc/Documentation/i2c/slave-interface

Fixes: b819485944c3 ("i2c: i2c-stm32f7: Add slave support")
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-stm32f7.c