]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: imx: defer probe if bus recovery GPIOs are not ready
authorStefan Agner <stefan@agner.ch>
Tue, 27 Sep 2016 00:18:58 +0000 (17:18 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 25 Oct 2016 10:15:00 +0000 (12:15 +0200)
commit3277089d919516fdbb0c0b95ca424d89d1c10a74
treef5fcc56599fbca43c8bbd8bac0c8c1281fe3d40a
parent940a2659e6340807909ed4a1273234e569c658bd
i2c: imx: defer probe if bus recovery GPIOs are not ready

Some SoC might load the GPIO driver after the I2C driver and
using the I2C bus recovery mechanism via GPIOs. In this case
it is crucial to defer probing if the GPIO request functions
do so, otherwise the I2C driver gets loaded without recovery
mechanisms enabled.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-imx.c