On Fri, Aug 11, 2023 at 03:52:01PM +0200, Yann Sionneau wrote:ack
From: Yann Sionneau <ysionneau@xxxxxxxxx>SCL
Currently if the SoC needs pinctrl to switch the scl and sda
SDA
ack
from hw function to gpio function, the recovery won't work.from the I2C
GPIO
Ok#include <linux/pm_runtime.h>Keep this in order.
#include <linux/regmap.h>
#include <linux/reset.h>
+#include <linux/pinctrl/consumer.h>
...
+ rinfo->pinctrl = devm_pinctrl_get(dev->dev);It's not possible to have it NULL, why a dead code?
+ if (!rinfo->pinctrl || IS_ERR(rinfo->pinctrl)) {