* [PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 @ 2015-06-22 23:52 Douglas Anderson [not found] ` <1435017144-2971-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Douglas Anderson @ 2015-06-22 23:52 UTC (permalink / raw) To: Greg Kroah-Hartman, John Youn, Felipe Balbi Cc: Chris Zhong, Heiko Stuebner, Julius Werner, Andrew Bresticker, Alexandru Stan, lyz-TNX95d0MmH7DzftRWevZcw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Douglas Anderson, Petr Mladek, Alan Stern, Kumar Gala, Ian Campbell, Rob Herring, Pratyush Anand, Peter Chen, Kever Yang, Pawel Moll, Robert Schlabbach, Gregory Herrero, Zhuang Jin Can, devicetree-u79uwXL29TY76Z2rM5mHXA, Dan Williams, Paul Zimmerman, linux-usb This series of patches, together with <https://patchwork.kernel.org/patch/6652341/> from Chris Zhong and a dts change allow us to wake up from a USB device on rk3288 boards. The patches were tested on rk3288-jerry in the chromeos-3.14 kernel. The chromeos-3.14 kernel tested included a full set of dwc2 backports from upstream, so this is expected to function upstream once we get everything setup there. Douglas Anderson (3): USB: Export usb_wakeup_enabled_descendants() Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB USB: dwc2: Don't turn off the usbphy in suspend if wakeup is enabled Documentation/devicetree/bindings/usb/dwc2.txt | 4 +++ drivers/usb/core/hub.c | 7 ++-- drivers/usb/dwc2/core.h | 2 ++ drivers/usb/dwc2/platform.c | 45 ++++++++++++++++++++++++-- include/linux/usb/hcd.h | 5 +++ 5 files changed, 58 insertions(+), 5 deletions(-) -- 2.4.3.573.g4eafbef -- To unsubscribe from this list: send the line "unsubscribe devicetree" in ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <1435017144-2971-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>]
* [PATCH 2/3] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB [not found] ` <1435017144-2971-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> @ 2015-06-22 23:52 ` Douglas Anderson 2015-06-23 14:17 ` Rob Herring 2015-07-06 17:48 ` [PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 Felipe Balbi 1 sibling, 1 reply; 7+ messages in thread From: Douglas Anderson @ 2015-06-22 23:52 UTC (permalink / raw) To: Greg Kroah-Hartman, John Youn, Felipe Balbi Cc: Chris Zhong, Heiko Stuebner, Julius Werner, Andrew Bresticker, Alexandru Stan, lyz-TNX95d0MmH7DzftRWevZcw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Douglas Anderson, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Kever Yang, Paul Zimmerman, Gregory Herrero, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Some SoCs with a dwc2 USB controller may need to keep the PHY on to support remote wakeup. Allow specifying this as a device tree property. Signed-off-by: Douglas Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> --- Documentation/devicetree/bindings/usb/dwc2.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt index fd132cb..84d258d 100644 --- a/Documentation/devicetree/bindings/usb/dwc2.txt +++ b/Documentation/devicetree/bindings/usb/dwc2.txt @@ -17,6 +17,9 @@ Refer to clk/clock-bindings.txt for generic clock consumer properties Optional properties: - phys: phy provider specifier - phy-names: shall be "usb2-phy" +- snps,need-phy-for-wake: if present indicates that the phy needs to be left + on for remote wakeup during suspend. + Refer to phy/phy-bindings.txt for generic phy consumer properties - dr_mode: shall be one of "host", "peripheral" and "otg" Refer to usb/generic.txt @@ -35,4 +38,5 @@ Example: clock-names = "otg"; phys = <&usbphy>; phy-names = "usb2-phy"; + snps,need-phy-for-wake; }; -- 2.4.3.573.g4eafbef -- To unsubscribe from this list: send the line "unsubscribe devicetree" in ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB 2015-06-22 23:52 ` [PATCH 2/3] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB Douglas Anderson @ 2015-06-23 14:17 ` Rob Herring [not found] ` <CAL_JsqJT42GhY45FWY5G=450zxSRVLHu36_O1tPkTdH39JeEcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Rob Herring @ 2015-06-23 14:17 UTC (permalink / raw) To: Douglas Anderson Cc: Greg Kroah-Hartman, John Youn, Felipe Balbi, Chris Zhong, Heiko Stuebner, Julius Werner, Andrew Bresticker, Alexandru Stan, lyz, linux-rockchip, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Kever Yang, Paul Zimmerman, Gregory Herrero, devicetree, linux-kernel On Mon, Jun 22, 2015 at 6:52 PM, Douglas Anderson <dianders@chromium.org> wrote: > Some SoCs with a dwc2 USB controller may need to keep the PHY on to > support remote wakeup. Allow specifying this as a device tree > property. I find it hard to believe that any host can support wake-up without the PHY. Does this really need to be conditional? Perhaps other cases are just always-on or remote wake-up has not been tested. Assuming the PHY was provided with the knowledge that remote wakeup is enabled, it would be able to figure out within its driver how to support that. Unfortunately the generic PHY framework is a completely lacking in its ability to support protocol specific features like this or other USB PHY features like Vbus detect or charger detection. Rob > > Signed-off-by: Douglas Anderson <dianders@chromium.org> > --- > Documentation/devicetree/bindings/usb/dwc2.txt | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt > index fd132cb..84d258d 100644 > --- a/Documentation/devicetree/bindings/usb/dwc2.txt > +++ b/Documentation/devicetree/bindings/usb/dwc2.txt > @@ -17,6 +17,9 @@ Refer to clk/clock-bindings.txt for generic clock consumer properties > Optional properties: > - phys: phy provider specifier > - phy-names: shall be "usb2-phy" > +- snps,need-phy-for-wake: if present indicates that the phy needs to be left > + on for remote wakeup during suspend. > + > Refer to phy/phy-bindings.txt for generic phy consumer properties > - dr_mode: shall be one of "host", "peripheral" and "otg" > Refer to usb/generic.txt > @@ -35,4 +38,5 @@ Example: > clock-names = "otg"; > phys = <&usbphy>; > phy-names = "usb2-phy"; > + snps,need-phy-for-wake; > }; > -- > 2.4.3.573.g4eafbef > ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <CAL_JsqJT42GhY45FWY5G=450zxSRVLHu36_O1tPkTdH39JeEcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 2/3] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB [not found] ` <CAL_JsqJT42GhY45FWY5G=450zxSRVLHu36_O1tPkTdH39JeEcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-06-23 15:12 ` Doug Anderson 0 siblings, 0 replies; 7+ messages in thread From: Doug Anderson @ 2015-06-23 15:12 UTC (permalink / raw) To: Rob Herring Cc: Greg Kroah-Hartman, John Youn, Felipe Balbi, Chris Zhong, Heiko Stuebner, Julius Werner, Andrew Bresticker, Alexandru Stan, lyz, open list:ARM/Rockchip SoC..., Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Kever Yang, Paul Zimmerman, Gregory Herrero, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Rob, On Tue, Jun 23, 2015 at 7:17 AM, Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On Mon, Jun 22, 2015 at 6:52 PM, Douglas Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote: >> Some SoCs with a dwc2 USB controller may need to keep the PHY on to >> support remote wakeup. Allow specifying this as a device tree >> property. > > I find it hard to believe that any host can support wake-up without > the PHY. I am told by Andrew Bresticker that on tegra there is complicated logic in the PMU that allows USB wakeup while powering off the PHY. If I hadn't been aware of such a feature I probably would have called the property "wakeup-supported" or something like that. > Does this really need to be conditional? Perhaps other cases > are just always-on or remote wake-up has not been tested. When I worked on exynos products I was told by Samsung that USB wakeup was simply not possible. True that they have a different USB controller, but I can certainly believe that someone could design a system with dwc2 where USB wakeup was not possible. Specifically, in order to get USB wakeup we had to switch on the 24MHz clock at suspend time. Had that not been possible (or had the 24MHz clock not been able to be a clock source for the USB controller) then USB wakeup would not be possible on rk3288 even if we left the phy on. So to me the three states are: 1. USB wake not possible 2. USB wake possible, don't need PHY 3. USB wake possible, do need PHY I don't know of any dwc2 users that are in #2 (so I didn't add a property now), but I figure that when they exist someone should add a property then. -Doug -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 [not found] ` <1435017144-2971-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> 2015-06-22 23:52 ` [PATCH 2/3] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB Douglas Anderson @ 2015-07-06 17:48 ` Felipe Balbi 2015-07-06 18:06 ` Doug Anderson 1 sibling, 1 reply; 7+ messages in thread From: Felipe Balbi @ 2015-07-06 17:48 UTC (permalink / raw) To: Douglas Anderson Cc: Mark Rutland, Heiko Stuebner, Andrew Bresticker, Kever Yang, Petr Mladek, Chris Zhong, Pratyush Anand, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Alan Stern, lyz-TNX95d0MmH7DzftRWevZcw, Peter Chen, devicetree-u79uwXL29TY76Z2rM5mHXA, Alexandru Stan, Pawel Moll, Ian Campbell, John Youn, Rob Herring, Matthew Garrett, Robert Schlabbach, Dan Williams, Zhuang Jin Can, Gregory Herrero, Greg Kroah-Hartman, linux-usb [-- Attachment #1.1: Type: text/plain, Size: 687 bytes --] On Mon, Jun 22, 2015 at 04:52:21PM -0700, Douglas Anderson wrote: > This series of patches, together with > <https://patchwork.kernel.org/patch/6652341/> from Chris Zhong and a > dts change allow us to wake up from a USB device on rk3288 boards. > The patches were tested on rk3288-jerry in the chromeos-3.14 kernel. > The chromeos-3.14 kernel tested included a full set of dwc2 backports > from upstream, so this is expected to function upstream once we get > everything setup there. > > > Douglas Anderson (3): > USB: Export usb_wakeup_enabled_descendants() > Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB I didn't get 2/3 :-( -- balbi [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] [-- Attachment #2: Type: text/plain, Size: 200 bytes --] _______________________________________________ Linux-rockchip mailing list Linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org http://lists.infradead.org/mailman/listinfo/linux-rockchip ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 2015-07-06 17:48 ` [PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 Felipe Balbi @ 2015-07-06 18:06 ` Doug Anderson [not found] ` <CAD=FV=U4egHAPtUHc6Lvtfr+Uvad2YkBuW=wiTH1eg_XH_zz4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Doug Anderson @ 2015-07-06 18:06 UTC (permalink / raw) To: Felipe Balbi Cc: Greg Kroah-Hartman, John Youn, Chris Zhong, Heiko Stuebner, Julius Werner, Andrew Bresticker, Alexandru Stan, lyz, open list:ARM/Rockchip SoC..., Petr Mladek, Alan Stern, Kumar Gala, Ian Campbell, Rob Herring, Pratyush Anand, Peter Chen, Kever Yang, Pawel Moll, Robert Schlabbach, Gregory Herrero, Zhuang Jin Can Felipe, On Mon, Jul 6, 2015 at 10:48 AM, Felipe Balbi <balbi@ti.com> wrote: > On Mon, Jun 22, 2015 at 04:52:21PM -0700, Douglas Anderson wrote: >> This series of patches, together with >> <https://patchwork.kernel.org/patch/6652341/> from Chris Zhong and a >> dts change allow us to wake up from a USB device on rk3288 boards. >> The patches were tested on rk3288-jerry in the chromeos-3.14 kernel. >> The chromeos-3.14 kernel tested included a full set of dwc2 backports >> from upstream, so this is expected to function upstream once we get >> everything setup there. >> >> >> Douglas Anderson (3): >> USB: Export usb_wakeup_enabled_descendants() >> Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB > > I didn't get 2/3 :-( Odd. I'm happy to repost the series, but you were certainly on the "To" for the whole series. You can see the Headers at <https://patchwork.kernel.org/patch/6658421/> ...please let me know if you'd like me to repost and we can hope the email system works better next time... -Doug ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <CAD=FV=U4egHAPtUHc6Lvtfr+Uvad2YkBuW=wiTH1eg_XH_zz4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 [not found] ` <CAD=FV=U4egHAPtUHc6Lvtfr+Uvad2YkBuW=wiTH1eg_XH_zz4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-07-06 18:12 ` Felipe Balbi 0 siblings, 0 replies; 7+ messages in thread From: Felipe Balbi @ 2015-07-06 18:12 UTC (permalink / raw) To: Doug Anderson Cc: Mark Rutland, Heiko Stuebner, Andrew Bresticker, Kever Yang, Petr Mladek, Chris Zhong, Pratyush Anand, open list:ARM/Rockchip SoC..., Alan Stern, lyz, Peter Chen, devicetree-u79uwXL29TY76Z2rM5mHXA, Alexandru Stan, Pawel Moll, Ian Campbell, John Youn, Rob Herring, Matthew Garrett, Robert Schlabbach, Dan Williams, Zhuang Jin Can, Gregory Herrero [-- Attachment #1.1: Type: text/plain, Size: 1443 bytes --] On Mon, Jul 06, 2015 at 11:06:35AM -0700, Doug Anderson wrote: > Felipe, > > On Mon, Jul 6, 2015 at 10:48 AM, Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> wrote: > > On Mon, Jun 22, 2015 at 04:52:21PM -0700, Douglas Anderson wrote: > >> This series of patches, together with > >> <https://patchwork.kernel.org/patch/6652341/> from Chris Zhong and a > >> dts change allow us to wake up from a USB device on rk3288 boards. > >> The patches were tested on rk3288-jerry in the chromeos-3.14 kernel. > >> The chromeos-3.14 kernel tested included a full set of dwc2 backports > >> from upstream, so this is expected to function upstream once we get > >> everything setup there. > >> > >> > >> Douglas Anderson (3): > >> USB: Export usb_wakeup_enabled_descendants() > >> Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB > > > > I didn't get 2/3 :-( > > Odd. I'm happy to repost the series, but you were certainly on the > "To" for the whole series. You can see the Headers at > <https://patchwork.kernel.org/patch/6658421/> > > ...please let me know if you'd like me to repost and we can hope the > email system works better next time... If you can, that would help me. Just make sure to Cc linux-usb on all patches, since that's where I tend to get my patches from. Thanks and sorry for the extra step resending this. ps: dropping Paul Z as he's not in SNPS anymore -- balbi [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] [-- Attachment #2: Type: text/plain, Size: 200 bytes --] _______________________________________________ Linux-rockchip mailing list Linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org http://lists.infradead.org/mailman/listinfo/linux-rockchip ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-07-06 18:12 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-06-22 23:52 [PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 Douglas Anderson [not found] ` <1435017144-2971-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> 2015-06-22 23:52 ` [PATCH 2/3] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB Douglas Anderson 2015-06-23 14:17 ` Rob Herring [not found] ` <CAL_JsqJT42GhY45FWY5G=450zxSRVLHu36_O1tPkTdH39JeEcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-06-23 15:12 ` Doug Anderson 2015-07-06 17:48 ` [PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 Felipe Balbi 2015-07-06 18:06 ` Doug Anderson [not found] ` <CAD=FV=U4egHAPtUHc6Lvtfr+Uvad2YkBuW=wiTH1eg_XH_zz4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-07-06 18:12 ` Felipe Balbi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).