> -----Original Message----- > From: Uwe Kleine-König [mailto:u.kleine-koenig@xxxxxxxxxxxxxx] > Sent: Tuesday, October 23, 2018 8:42 PM > To: A.s. Dong <aisheng.dong@xxxxxxx> > Cc: Russell King - ARM Linux <linux@xxxxxxxxxxxxxxx>; dongas86@xxxxxxxxx; > Linus Walleij <linus.walleij@xxxxxxxxxx>; Stefan Agner <stefan@xxxxxxxx>; > linux-gpio@xxxxxxxxxxxxxxx; robh+dt@xxxxxxxxxx; dl-linux-imx > <linux-imx@xxxxxxx>; kernel@xxxxxxxxxxxxxx; Fabio Estevam > <fabio.estevam@xxxxxxx>; shawnguo@xxxxxxxxxx; > linux-arm-kernel@xxxxxxxxxxxxxxxxxxx > Subject: Re: [PATCH V2 4/8] gpio: vf610: add optional clock support > > On Tue, Oct 23, 2018 at 12:23:12PM +0000, A.s. Dong wrote: > > Hi Russell, > > > > > -----Original Message----- > > > From: Russell King - ARM Linux [mailto:linux@xxxxxxxxxxxxxxx] > > > Sent: Tuesday, October 23, 2018 8:04 PM > > [...] > > > On Tue, Oct 23, 2018 at 11:49:17AM +0000, A.s. Dong wrote: > > > > + clk_gpio = devm_clk_get(&pdev->dev, "gpio"); > > > > + clk_port = devm_clk_get(&pdev->dev, "port"); > > > > + if ((PTR_ERR(clk_gpio) == -EPROBE_DEFER) || > > > > + (PTR_ERR(clk_port) == -EPROBE_DEFER)) { > > > > > > if (clk_gpio == ERR_PTR(-EPROBE_DEFER) || > > > clk_port == ERR_PTR(-EPROBE_DEFER)) { > > > > > > > Thanks for the suggestion. I will update it in next series. > > Before that, let's wait a moment to see if any more review comments. > > > > BTW, as I see kernel currently is widely using PTR_ERR(ptr) to compare > > -EPROBE_DEFER, I'm not quite get the point why the new approach you > > suggested is better, is it less error-prone? Or something else? > > would you please help clarify a bit more? > > See the discussion in > https://lore.kernel.org/patchwork/patch/999602/ > Thanks for sharing the info. It does help. Regards Dong Aisheng > Best regards > Uwe > > -- > Pengutronix e.K. | Uwe Kleine-König > | > Industrial Linux Solutions | > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww. > pengutronix.de%2F&data=02%7C01%7Caisheng.dong%40nxp.com%7C06 > 5f26466899474bf61a08d638e4e308%7C686ea1d3bc2b4c6fa92cd99c5c3016 > 35%7C0%7C0%7C636758953039817883&sdata=hSgiadfyiFoK4AVTF2BR > guOU5H8C77%2BY2bdjViC4Sfw%3D&reserved=0 |