diff options
author | Yann Sionneau <[email protected]> | 2023-08-22 16:34:37 +0200 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2023-08-25 22:26:03 +0200 |
commit | 4ba63869a0f539c1b8d5027ccf2295c23d66fa54 (patch) | |
tree | 9465fb55b13dfaaa61348b0028657d71a87aa66a /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 2ed4fa9cb875a7720258fa25521ac67220e934b8 (diff) |
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 <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Acked-by: Jarkko Nikula <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions