[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z2VZLw0RGiEA68Nd@pengutronix.de>
Date: Fri, 20 Dec 2024 12:46:55 +0100
From: Oleksij Rempel <o.rempel@...gutronix.de>
To: Ahmad Fatoum <a.fatoum@...gutronix.de>
Cc: Carlos Song <carlos.song@....com>, Andi Shyti <andi.shyti@...nel.org>,
Frank Li <frank.li@....com>,
"kernel@...gutronix.de" <kernel@...gutronix.de>,
"shawnguo@...nel.org" <shawnguo@...nel.org>,
"s.hauer@...gutronix.de" <s.hauer@...gutronix.de>,
"festevam@...il.com" <festevam@...il.com>,
"linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>,
"imx@...ts.linux.dev" <imx@...ts.linux.dev>,
"linux-arm-kernel@...ts.infradead.org" <linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Clark Wang <xiaoning.wang@....com>
Subject: Re: [PATCH v5] i2c: imx: support DMA defer probing
On Fri, Dec 20, 2024 at 11:51:27AM +0100, Ahmad Fatoum wrote:
> Hi Carlos,
>
> On 20.12.24 11:46, Carlos Song wrote:
> >
> >
> >> -----Original Message-----
> >> From: Ahmad Fatoum <a.fatoum@...gutronix.de>
> >> Sent: Friday, December 20, 2024 5:32 PM
> >> To: Carlos Song <carlos.song@....com>; Oleksij Rempel
>
> >> I know -110, but -12 I need to look up :) Both are cryptic to end users, which is
> >> why %pe was added on top of the existing %p:
> >>
> >> If CONFIG_SYMBOLIC_ERRNAME is enabled %pe expands to an error string, e.g.
> >> "ENOMEM" or "ETIMEDOUT". If it's disabled, you get the same error number
> >> that was printed raw before.
> >>
> >> Cheers,
> >> Ahmad
> >>
> >
> > Wow! Looks so cool.
> > Thank you very much for your patient explanation! I agree it.
> >
> > Also I will change the comment from your suggestion[1]:
> >
> > "
> > /*
> > * As we can always fall back to PIO, let's ignore the error setting up
> > * DMA and see if we run into errors while setting up PIO mode.
> > */
> > "
> > In fact, other errors are also from DMA setting not from setting PIO mode.
> > So can I comment simply like this?
> >
> > /* As we can always fall back to PIO, let's ignore the error setting up DMA. */
> > ret = i2c_imx_dma_request(i2c_imx, phy_addr);
> > if (ret) {
> > if (ret == -EPROBE_DEFER)
> > goto clk_notifier_unregister;
> > else if (ret == -ENODEV)
> > dev_dbg(&pdev->dev, "Only use PIO mode\n");
> > else
> > dev_err(&pdev->dev, "Failed to setup DMA (%pe), only use PIO mode\n", ERR_PTR(ret));
> > }
> >
> > [1]https://lore.kernel.org/imx/89a3b1c9-2be2-4e7f-a0c6-abbf8b88957b@pengutronix.de/
>
> Sure, looks good to me. @Oleksij?
Ack, looks good. Thank you!
--
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