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)
commit533169d164c6b4c8571d0d48779f6ff6be593d72
treef5fcc56599fbca43c8bbd8bac0c8c1281fe3d40a
parent171e23e150acfb285f1772cedf04d35694af740b
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