[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CWYHO5EGLYQ8.19W6XQHV61VEL@tleb-bootlin-xps13-01>
Date: Tue, 14 Nov 2023 12:13:26 +0100
From: Théo Lebrun <theo.lebrun@...tlin.com>
To: "Gregory CLEMENT" <gregory.clement@...tlin.com>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
"Rob Herring" <robh+dt@...nel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@...aro.org>,
"Conor Dooley" <conor+dt@...nel.org>,
"Roger Quadros" <rogerq@...nel.org>,
"Peter Chen" <peter.chen@...nel.org>,
"Pawel Laszczak" <pawell@...ence.com>,
"Nishanth Menon" <nm@...com>,
"Vignesh Raghavendra" <vigneshr@...com>,
"Tero Kristo" <kristo@...nel.org>
Cc: <linux-usb@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 3/6] usb: cdns3-ti: add suspend/resume procedures for
J7200
Hello,
On Mon Nov 13, 2023 at 4:39 PM CET, Gregory CLEMENT wrote:
> > diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c
> > index c331bcd2faeb..50b38c4b9c87 100644
> > --- a/drivers/usb/cdns3/cdns3-ti.c
> > +++ b/drivers/usb/cdns3/cdns3-ti.c
> > @@ -197,6 +197,50 @@ static int cdns_ti_probe(struct platform_device *pdev)
> > return error;
> > }
> >
> > +#ifdef CONFIG_PM
> > +
> > +static int cdns_ti_suspend(struct device *dev)
> > +{
> > + struct cdns_ti *data = dev_get_drvdata(dev);
> > +
> > + if (!of_device_is_compatible(dev_of_node(dev), "ti,j7200-usb"))
> > + return 0;
>
> Just a small remark:
>
> What about adding a boolean in the cdns_ti struct for taking care of
> it ? Then you will go through the device tree only during probe. Moreover
> if this behaviour is needed for more compatible we can just add them in
> the probe too.
Will do. The hardest part will be to pick a good name.
> Besides this you still can add my
>
> Reviewed-by: Gregory CLEMENT <gregory.clement@...tlin.com>
Thanks for the review.
--
Théo Lebrun, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists