On Tue, Aug 22, 2023 at 03:11:23PM +0200, Yann Sionneau wrote:Woops sorry, I am not used to sending patches upstream. I didn't know I had to add the ack tag. Will do it!
scl-gpio = <>;You forgot my tag. Why?
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@xxxxxxxxx>
---
V3 -> V4:
* Replace `else if` by simply `if`.
Also I think this will generate more code and more noise in debug case.Ah yes you are right in case of dbg+CONFIG_PINCTRL not set it will print both messages but just one is enough.
So, I admit I gave a bad suggestion in previous round.
Ok, I'll also add `i2c: designware: ` to $subject as Mika Westerberg suggested.
Please, go for v3 with my tag (as v5).