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 11:33:50 +0100 [thread overview]
Message-ID: <20190128113350.603b2be3@xps13> (raw)
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.
Thanks,
Miquèl
WARNING: multiple messages have this Message-ID (diff)
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Mark Rutland <mark.rutland@arm.com>, Andrew Lunn <andrew@lunn.ch>,
Jason Cooper <jason@lakedaemon.net>,
Mathias Nyman <mathias.nyman@intel.com>,
devicetree@vger.kernel.org,
Antoine Tenart <antoine.tenart@bootlin.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Gregory Clement <gregory.clement@bootlin.com>,
linux-usb@vger.kernel.org, Kishon Vijay Abraham I <kishon@ti.com>,
Nadav Haklai <nadavh@marvell.com>,
Rob Herring <robh+dt@kernel.org>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
linux-arm-kernel@lists.infradead.org,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Subject: Re: [PATCH v4 04/10] usb: ehci-orion: add S2RAM support
Date: Mon, 28 Jan 2019 11:33:50 +0100 [thread overview]
Message-ID: <20190128113350.603b2be3@xps13> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1901252152190.18583-100000@netrider.rowland.org>
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.
Thanks,
Miquèl
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2019-01-28 10:33 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-28 10:33 Miquel Raynal [this message]
2019-01-28 10:33 ` [PATCH v4 04/10] usb: ehci-orion: add S2RAM support Miquel Raynal
-- strict thread matches above, loose matches on Subject: below --
2019-01-28 15:36 [v4,04/10] " Miquel Raynal
2019-01-28 15:36 ` [PATCH v4 04/10] " Miquel Raynal
2019-01-28 15:27 [v4,04/10] " Alan Stern
2019-01-28 15:27 ` [PATCH v4 04/10] " Alan Stern
2019-01-28 15:27 ` Alan Stern
2019-01-26 2:56 [v4,04/10] " Alan Stern
2019-01-26 2:56 ` [PATCH v4 04/10] " Alan Stern
2019-01-26 2:56 ` Alan Stern
2019-01-25 10:39 [v4,10/10] ARM64: dts: marvell: armada-37xx: link USB hosts with their PHYs Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 10/10] " Miquel Raynal
2019-01-25 10:39 ` Miquel Raynal
2019-01-25 10:39 [v4,09/10] ARM64: dts: marvell: armada-37xx: declare USB2 UTMI PHYs Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 09/10] " Miquel Raynal
2019-01-25 10:39 ` Miquel Raynal
2019-01-25 10:39 [v4,08/10] ARM64: dts: marvell: armada-37xx: fix USB2 memory region Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 08/10] " Miquel Raynal
2019-01-25 10:39 ` Miquel Raynal
2019-01-25 10:39 [v4,07/10] MAINTAINERS: phy: fill Armada 3700 PHY drivers entry Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 07/10] " Miquel Raynal
2019-01-25 10:39 ` Miquel Raynal
2019-01-25 10:39 [v4,06/10] dt-bindings: phy: mvebu-utmi: add UTMI PHY bindings Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 06/10] " Miquel Raynal
2019-01-25 10:39 ` Miquel Raynal
2019-01-25 10:39 [v4,05/10] phy: add A3700 UTMI PHY driver Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 05/10] " Miquel Raynal
2019-01-25 10:39 [v4,04/10] usb: ehci-orion: add S2RAM support Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 04/10] " Miquel Raynal
2019-01-25 10:39 ` Miquel Raynal
2019-01-25 10:39 [v4,03/10] usb: ehci-orion: avoid double PHY initialization Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 03/10] " Miquel Raynal
2019-01-25 10:39 ` Miquel Raynal
2019-01-25 10:39 [v4,02/10] usb: host: xhci: mvebu: add reset on resume quirk Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 02/10] " Miquel Raynal
2019-01-25 10:39 ` Miquel Raynal
2019-01-25 10:39 [v4,01/10] usb: core: comply to PHY framework Miquel Raynal
2019-01-25 10:39 ` [PATCH v4 01/10] " Miquel Raynal
2019-01-25 10:39 ` Miquel Raynal
2019-01-25 10:39 [PATCH v4 00/10] A3700 USB S2RAM support 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=20190128113350.603b2be3@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.