summaryrefslogtreecommitdiff
path: root/drivers/i2c/i2c-core-base.c
diff options
context:
space:
mode:
authorYann Sionneau <ysionneau@kalray.eu>2023-08-22 17:34:37 +0300
committerWolfram Sang <wsa@kernel.org>2023-08-25 23:26:03 +0300
commit4ba63869a0f539c1b8d5027ccf2295c23d66fa54 (patch)
tree9465fb55b13dfaaa61348b0028657d71a87aa66a /drivers/i2c/i2c-core-base.c
parent2ed4fa9cb875a7720258fa25521ac67220e934b8 (diff)
downloadlinux-4ba63869a0f539c1b8d5027ccf2295c23d66fa54.tar.xz
i2c: designware: Add support for recovery when GPIO need pinctrl
Currently if the SoC needs pinctrl to switch the SCL and SDA from the I2C function to GPIO function, the recovery won't work. scl-gpio = <>; sda-gpio = <>; Are not enough for some SoCs to have a working recovery. Some need: scl-gpio = <>; sda-gpio = <>; pinctrl-names = "default", "recovery"; pinctrl-0 = <&i2c_pins_hw>; pinctrl-1 = <&i2c_pins_gpio>; The driver was not filling rinfo->pinctrl with the device node pinctrl data which is needed by generic recovery code. Signed-off-by: Yann Sionneau <ysionneau@kalray.eu> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/i2c-core-base.c')
0 files changed, 0 insertions, 0 deletions