[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240126074315.GE381737@pengutronix.de>
Date: Fri, 26 Jan 2024 08:43:15 +0100
From: Oleksij Rempel <o.rempel@...gutronix.de>
To: Esben Haabendal <esben@...nix.com>
Cc: Andi Shyti <andi.shyti@...nel.org>,
Alexander Stein <alexander.stein@...tq-group.com>,
Fabio Estevam <festevam@...il.com>,
Sascha Hauer <s.hauer@...gutronix.de>, linux-kernel@...r.kernel.org,
Gregor Herburger <gregor.herburger@...tq-group.com>,
linux-i2c@...r.kernel.org,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Shawn Guo <shawnguo@...nel.org>,
Jinjie Ruan <ruanjinjie@...wei.com>,
linux-arm-kernel@...ts.infradead.org,
NXP Linux Team <linux-imx@....com>
Subject: Re: [PATCH] i2c: imx: move to generic GPIO recovery
On Fri, Jan 26, 2024 at 08:38:08AM +0100, Esben Haabendal wrote:
> Oleksij Rempel <o.rempel@...gutronix.de> writes:
>
> > ....
> >> + struct i2c_bus_recovery_info *bri = &i2c_imx->rinfo;
> >>
> >> - dev_dbg(&pdev->dev, "using scl%s for recovery\n",
> >> - rinfo->sda_gpiod ? ",sda" : "");
> >> + bri->pinctrl = devm_pinctrl_get(&pdev->dev);
> >> + if (IS_ERR(bri->pinctrl))
> >> + return PTR_ERR(bri->pinctrl);
> >
> > According to the commit message - "pinctrl becomes optional", but this
> > code stops probe if pinctrl will fail for one or another reason. I do
> > not see any place returning NULL on fail. Do I'm missing something?
>
> The caller, i2c_imx_probe(), does only check for -EPROBE_DEFER, and
> simply ignores any other error codes.
>
> I assume it is on purpose, so any problems with initializing i2c
> recovery does not cause complete failure of the i2c controller, which
> seems sane to me.
Good point, this is what I overlooked :)
Acked-by: Oleksij Rempel <o.rempel@...gutronix.de>
Regards,
Oleksij
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Powered by blists - more mailing lists