From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Gregory Clement <gregory.clement@bootlin.com>,
Jason Cooper <jason@lakedaemon.net>, Andrew Lunn <andrew@lunn.ch>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
Kishon Vijay Abraham I <kishon@ti.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Mathias Nyman <mathias.nyman@intel.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-usb@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Antoine Tenart <antoine.tenart@bootlin.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Nadav Haklai <nadavh@marvell.com>
Subject: [v4,04/10] usb: ehci-orion: add S2RAM support
Date: Mon, 28 Jan 2019 16:36:04 +0100 [thread overview]
Message-ID: <20190128163604.6c34bdb7@xps13> (raw)
Hi Alan,
Alan Stern <stern@rowland.harvard.edu> wrote on Mon, 28 Jan 2019
10:27:53 -0500 (EST):
> On Mon, 28 Jan 2019, Miquel Raynal wrote:
>
> > Hi Alan,
> >
> > Alan Stern <stern@rowland.harvard.edu> wrote on Fri, 25 Jan 2019
> > 21:56:27 -0500 (EST):
> >
> > > On Fri, 25 Jan 2019, Miquel Raynal wrote:
> > >
> > > > Add suspend/resume callbacks to reset the host controller properly
> > > > during S2RAM operation.
> > > >
> > > > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> > > > ---
> > > > drivers/usb/host/ehci-orion.c | 18 ++++++++++++++++++
> > > > 1 file changed, 18 insertions(+)
> > > >
> > > > diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c
> > > > index 3109f082949e..0dab099b5d15 100644
> > > > --- a/drivers/usb/host/ehci-orion.c
> > > > +++ b/drivers/usb/host/ehci-orion.c
> > > > @@ -182,6 +182,23 @@ static int ehci_orion_drv_reset(struct usb_hcd *hcd)
> > > > return ret;
> > > > }
> > > >
> > > > +static int __maybe_unused ehci_orion_drv_suspend(struct device *dev)
> > > > +{
> > > > + struct usb_hcd *hcd = dev_get_drvdata(dev);
> > > > +
> > > > + return ehci_suspend(hcd, device_may_wakeup(dev));
> > >
> > > Okay, good.
> > >
> > > > +}
> > > > +
> > > > +static int __maybe_unused ehci_orion_drv_resume(struct device *dev)
> > > > +{
> > > > + struct usb_hcd *hcd = dev_get_drvdata(dev);
> > > > +
> > > > + return ehci_resume(hcd, device_may_wakeup(dev));
> > >
> > > Not so good. The second argument here is force_reset; presumably you
> > > want it always to be false. (Note that the v3 version of this patch
> > > did not call device_may_wakeup() in ehci_orion_drv_resume.)
> > >
> > > Yes, the API is not symmetrical. So sue me...
> >
> > Oh right, I completely overlooked that one. Indeed the second parameter
> > should be "false", as in the v3. Do you mind if I send a v5 only for
> > this patch? If the rest looks good to you of course.
>
> To avoid confusing Greg, it would be best to send v5 of all the patches
> that he should apply. The rest of the EHCI changes look okay, and when
> you fix this you can add:
>
> Acked-by: Alan Stern <stern@rowland.harvard.edu>
Sure!
Thanks,
Miquèl
next reply other threads:[~2019-01-28 15:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-28 15:36 Miquel Raynal [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-01-28 15:27 [v4,04/10] usb: ehci-orion: add S2RAM support Alan Stern
2019-01-28 10:33 Miquel Raynal
2019-01-26 2:56 Alan Stern
2019-01-25 10:39 Miquel Raynal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190128163604.6c34bdb7@xps13 \
--to=miquel.raynal@bootlin.com \
--cc=andrew@lunn.ch \
--cc=antoine.tenart@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=gregory.clement@bootlin.com \
--cc=jason@lakedaemon.net \
--cc=kishon@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mathias.nyman@intel.com \
--cc=maxime.chevallier@bootlin.com \
--cc=nadavh@marvell.com \
--cc=robh+dt@kernel.org \
--cc=sebastian.hesselbarth@gmail.com \
--cc=stern@rowland.harvard.edu \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox