devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [REPOST PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288
@ 2015-07-06 18:27 Douglas Anderson
       [not found] ` <1436207224-21849-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Douglas Anderson @ 2015-07-06 18:27 UTC (permalink / raw)
  To: Greg Kroah-Hartman, John Youn, Felipe Balbi
  Cc: linux-usb, Chris Zhong, Heiko Stuebner, Julius Werner,
	Andrew Bresticker, Alexandru Stan, lyz, linux-rockchip,
	Douglas Anderson, Petr Mladek, Alan Stern, devicetree,
	Kever Yang, linux-kernel, Mark Rutland, Kumar Gala, Dan Williams,
	Matthew Garrett, Ian Campbell, Rob Herring, Pratyush Anand,
	Pawel Moll, Peter Chen, Gregory Herrero, Robert

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [REPOST PATCH 2/3] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB
       [not found] ` <1436207224-21849-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
@ 2015-07-06 18:27   ` Douglas Anderson
  2015-10-21 16:23   ` [REPOST PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 Doug Anderson
  1 sibling, 0 replies; 5+ messages in thread
From: Douglas Anderson @ 2015-07-06 18:27 UTC (permalink / raw)
  To: Greg Kroah-Hartman, John Youn, Felipe Balbi
  Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA, 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, 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 linux-usb" 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 related	[flat|nested] 5+ messages in thread

* Re: [REPOST PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288
       [not found] ` <1436207224-21849-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
  2015-07-06 18:27   ` [REPOST PATCH 2/3] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB Douglas Anderson
@ 2015-10-21 16:23   ` Doug Anderson
  2015-10-27  2:05     ` John Youn
  1 sibling, 1 reply; 5+ messages in thread
From: Doug Anderson @ 2015-10-21 16:23 UTC (permalink / raw)
  To: John Youn
  Cc: Mark Rutland, Heiko Stuebner, Andrew Bresticker, Kever Yang,
	Petr Mladek, Douglas Anderson, Chris Zhong, Pratyush Anand,
	open list:ARM/Rockchip SoC...,
	Alan Stern, lyz, Peter Chen, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Alexandru Stan, Pawel Moll, Ian Campbell, Rob Herring,
	Matthew Garrett, Robert Schlabbach, Dan Williams,
	Gregory Herrero

John,

On Mon, Jul 6, 2015 at 11:27 AM, Douglas Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> 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
>   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(-)

This series was posted a while ago.  Do you have any comments on it?
Should I repost it?

Thanks!

-Doug

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [REPOST PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288
  2015-10-21 16:23   ` [REPOST PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 Doug Anderson
@ 2015-10-27  2:05     ` John Youn
  2015-10-31  0:01       ` Doug Anderson
  0 siblings, 1 reply; 5+ messages in thread
From: John Youn @ 2015-10-27  2:05 UTC (permalink / raw)
  To: Doug Anderson, John Youn
  Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA, Chris Zhong, Heiko Stuebner,
	Julius Werner, Andrew Bresticker, Alexandru Stan, lyz,
	open list:ARM/Rockchip SoC...,
	Petr Mladek, Alan Stern, devicetree-u79uwXL29TY76Z2rM5mHXA,
	Kever Yang, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Mark Rutland,
	Kumar Gala, Dan Williams, Matthew Garrett, Ian Campbell,
	Rob Herring, Pratyush Anand, Pawel Moll

On 10/21/2015 9:23 AM, Doug Anderson wrote:
> John,
> 
> On Mon, Jul 6, 2015 at 11:27 AM, Douglas Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> 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
>>   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(-)
> 
> This series was posted a while ago.  Do you have any comments on it?
> Should I repost it?
> 
> Thanks!
> 
> -Doug
> 


Sorry, I must have missed it earlier.

Could you repost based on latest and I'll review.

Regards,
John


--
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] 5+ messages in thread

* Re: [REPOST PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288
  2015-10-27  2:05     ` John Youn
@ 2015-10-31  0:01       ` Doug Anderson
  0 siblings, 0 replies; 5+ messages in thread
From: Doug Anderson @ 2015-10-31  0:01 UTC (permalink / raw)
  To: John Youn
  Cc: linux-usb, Chris Zhong, Heiko Stuebner, Julius Werner,
	Andrew Bresticker, Alexandru Stan, lyz,
	open list:ARM/Rockchip SoC...,
	Petr Mladek, Alan Stern, devicetree, Kever Yang, linux-kernel,
	Mark Rutland, Kumar Gala, Dan Williams, Matthew Garrett,
	Ian Campbell, Rob Herring, Pratyush Anand, Pawel Moll

John,

On Mon, Oct 26, 2015 at 7:05 PM, John Youn <John.Youn@synopsys.com> wrote:
> On 10/21/2015 9:23 AM, Doug Anderson wrote:
>> John,
>>
>> On Mon, Jul 6, 2015 at 11:27 AM, Douglas Anderson <dianders@chromium.org> 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
>>>   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(-)
>>
>> This series was posted a while ago.  Do you have any comments on it?
>> Should I repost it?
>>
>> Thanks!
>>
>> -Doug
>>
>
>
> Sorry, I must have missed it earlier.
>
> Could you repost based on latest and I'll review.

I tried today but something has changed in mainline Linux and the
rk3288 isn't waking up from USB even when I've configured it
correctly.  I can still send up the patches, but they won't actually
produce something that will work upstream.  :(

I'll keep it my back burner to investigate, though if someone else
(like maybe someone from Rockchip) wanted to, they could to it too...

...until we figure out what's going on we should probably consider
these patches abandoned.

-Doug

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-31  0:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-06 18:27 [REPOST PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 Douglas Anderson
     [not found] ` <1436207224-21849-1-git-send-email-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2015-07-06 18:27   ` [REPOST PATCH 2/3] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB Douglas Anderson
2015-10-21 16:23   ` [REPOST PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288 Doug Anderson
2015-10-27  2:05     ` John Youn
2015-10-31  0:01       ` Doug Anderson

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).