]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: imx: Use correct function to write to register
authorMichail Georgios Etairidis <m.etairidis@beck-ipc.com>
Tue, 20 Jun 2017 08:20:42 +0000 (10:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 22 Jun 2017 08:52:02 +0000 (10:52 +0200)
commit6cfd2799ec917cd310705b4ef1878f6c4719ba64
tree3a165441740a5a1475f972b7dd55b97e9d73458a
parent9e5f96e5ce55869ecb96f5ab5970aed3080c8ae8
i2c: imx: Use correct function to write to register

The i2c-imx driver incorrectly uses readb()/writeb() to read and
write to the appropriate registers when performing a repeated start.
The appropriate imx_i2c_read_reg()/imx_i2c_write_reg() functions
should be used instead. Performing a repeated start results in
a kernel panic. The platform is imx.

Signed-off-by: Michail G Etairidis <m.etairidis@beck-ipc.com>
Fixes: e64e75e7beb3 ("i2c: imx: add DMA support for freescale i2c driver")
Fixes: 4972ec3768b2 ("i2c: imx: fix the i2c bus hang issue when do repeat restart")
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c