summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-rcar.c
diff options
context:
space:
mode:
authorYang Li <leoyang.li@nxp.com>2016-09-12 17:22:30 -0500
committerWolfram Sang <wsa@the-dreams.de>2016-09-15 21:44:18 +0200
commitfd8961c5ba9e6c841cdf4cc00903316e5bd35180 (patch)
tree5d783e5d2d44ed41a0addc8c9d4c7340464c6b2f /drivers/i2c/busses/i2c-rcar.c
parentd1050caea4f0a7abd72e5feb01ee175828a69fd4 (diff)
i2c: imx: make bus recovery through pinctrl optional
Since commit 1c4b6c3bcf30 ("i2c: imx: implement bus recovery") the driver starts to use gpio/pinctrl to support optional bus recovery feature. But pinctrl is not always usable. There are platforms such as ls1021a and ls1043a that don't support pinctrl, and it could just be broken due to old/broken device tree. The patch makes it really optional that the probe function won't bailout on pinctrl problems instead it just disables bus recovery and prints out notification when there is problem with pinctrl. Since pinctrl is only used by bus recovery in this driver, move pinctrl initialization into bus recovery init function to prevent confusion. Signed-off-by: Li Yang <leoyang.li@nxp.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-rcar.c')
0 files changed, 0 insertions, 0 deletions