[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<AM0PR0402MB3937DD279DF6EE1CD65A6E13E8282@AM0PR0402MB3937.eurprd04.prod.outlook.com>
Date: Wed, 27 Nov 2024 08:18:19 +0000
From: Carlos Song <carlos.song@....com>
To: Marc Kleine-Budde <mkl@...gutronix.de>
CC: Frank Li <frank.li@....com>, "o.rempel@...gutronix.de"
<o.rempel@...gutronix.de>, "kernel@...gutronix.de" <kernel@...gutronix.de>,
"andi.shyti@...nel.org" <andi.shyti@...nel.org>, "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>
Subject: RE: RE: [EXT] Re: [PATCH v3] i2c: imx: support DMA defer probing
> -----Original Message-----
> From: Marc Kleine-Budde <mkl@...gutronix.de>
> Sent: Wednesday, November 27, 2024 3:59 PM
> To: Carlos Song <carlos.song@....com>
> Cc: Frank Li <frank.li@....com>; o.rempel@...gutronix.de;
> kernel@...gutronix.de; andi.shyti@...nel.org; shawnguo@...nel.org;
> s.hauer@...gutronix.de; festevam@...il.com; linux-i2c@...r.kernel.org;
> imx@...ts.linux.dev; linux-arm-kernel@...ts.infradead.org;
> linux-kernel@...r.kernel.org
> Subject: Re: RE: [EXT] Re: [PATCH v3] i2c: imx: support DMA defer
> probing
>
> On 27.11.2024 07:48:13, Carlos Song wrote:
> > > > static void i2c_imx_dma_callback(void *arg) @@ -1803,6 +1804,23
> > > > @@ static int i2c_imx_probe(struct platform_device *pdev)
> > > > if (ret == -EPROBE_DEFER)
> > > > goto clk_notifier_unregister;
> > > >
> > > > + /*
> > > > + * Init DMA config if supported, -ENODEV means DMA not enabled at
> > > > + * this platform, that is not a real error, so just remind "only
> > > > + * PIO mode is used". If DMA is enabled, but meet error when
> request
> > > > + * DMA channel, error should be showed in probe error log. PIO mode
> > > > + * should be available regardless of 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_info(&pdev->dev, "Only use PIO mode\n");
> > >
> > > On a system without DMA configured, with this patch we now get
> > > this info message that wasn't there before. I think this might
> > > annoy some people, so you should remove it.
> > >
> >
> > :-) hhh, get it.
>
> Some things look reasonable when discussing the patch, but when you
> see the new, cleaned-up version, you immediately realize that this is
> going to annoy people :)
>
Such valuable experience~ Thank you very much, Marc! This is definitely what I haven't thought about before.
I'll pay more attention in the future. :)
> > How about change to dev_dbg?
>
> Good idea.
>
Will fix it at V4.
> regards,
> Marc
>
> --
> Pengutronix e.K. | Marc Kleine-Budde |
> Embedded Linux | https://www.pengutronix.de |
> Vertretung Nürnberg | Phone: +49-5121-206917-129 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Powered by blists - more mailing lists