devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] usb: dwc3: gadget: Add disabling LPM option
       [not found] <1b784826dfee46adaa65c42d33934339d0c1f2a7.1618364095.git.Thinh.Nguyen@synopsys.com>
@ 2021-04-14  2:13 ` Thinh Nguyen
  2021-04-14  2:13   ` [PATCH v2 1/2] dt-bindings: usb: dwc3: Add disabling LPM for gadget Thinh Nguyen
  0 siblings, 1 reply; 3+ messages in thread
From: Thinh Nguyen @ 2021-04-14  2:13 UTC (permalink / raw)
  To: Felipe Balbi, Greg Kroah-Hartman, Thinh.Nguyen, linux-usb,
	devicetree, Rob Herring
  Cc: John Youn

Add a new option to disable LPM for gadget side. Some device may need to
disable this capability.

Changes in v2:
- Add cover letter
- Add new DT property for disabling LPM for gadget


Thinh Nguyen (2):
  dt-bindings: usb: dwc3: Add disabling LPM for gadget
  usb: dwc3: gadget: Check for disabled LPM quirk

 Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 8 +++++++-
 drivers/usb/dwc3/core.c                              | 2 ++
 drivers/usb/dwc3/core.h                              | 4 +++-
 drivers/usb/dwc3/gadget.c                            | 9 ++++++++-
 4 files changed, 20 insertions(+), 3 deletions(-)


base-commit: 401411bbc4e62bcbcc020c2c458ecb90843140a8
-- 
2.28.0


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

* [PATCH v2 1/2] dt-bindings: usb: dwc3: Add disabling LPM for gadget
  2021-04-14  2:13 ` [PATCH v2 0/2] usb: dwc3: gadget: Add disabling LPM option Thinh Nguyen
@ 2021-04-14  2:13   ` Thinh Nguyen
  2021-04-15 21:18     ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Thinh Nguyen @ 2021-04-14  2:13 UTC (permalink / raw)
  To: Felipe Balbi, Greg Kroah-Hartman, Thinh.Nguyen, linux-usb,
	devicetree, Rob Herring
  Cc: John Youn

Add a new DT option to disable LPM for gadget and update the description
for usb2-lpm-disable related to host for clarity.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
---
 Changes in v2:
 - New patch

 Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
index 2247da77eac1..41416fbd92aa 100644
--- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml
@@ -87,13 +87,19 @@ properties:
     minItems: 1
 
   snps,usb2-lpm-disable:
-    description: Indicate if we don't want to enable USB2 HW LPM
+    description: Indicate if we don't want to enable USB2 HW LPM for host
+      mode.
     type: boolean
 
   snps,usb3_lpm_capable:
     description: Determines if platform is USB3 LPM capable
     type: boolean
 
+  snps,usb2-gadget-lpm-disable:
+    description: Indicate if we don't want to enable USB2 HW LPM for gadget
+      mode.
+    type: boolean
+
   snps,dis-start-transfer-quirk:
     description:
       When set, disable isoc START TRANSFER command failure SW work-around
-- 
2.28.0


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

* Re: [PATCH v2 1/2] dt-bindings: usb: dwc3: Add disabling LPM for gadget
  2021-04-14  2:13   ` [PATCH v2 1/2] dt-bindings: usb: dwc3: Add disabling LPM for gadget Thinh Nguyen
@ 2021-04-15 21:18     ` Rob Herring
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring @ 2021-04-15 21:18 UTC (permalink / raw)
  To: Thinh Nguyen
  Cc: Felipe Balbi, linux-usb, Greg Kroah-Hartman, Rob Herring,
	devicetree, John Youn

On Tue, 13 Apr 2021 19:13:11 -0700, Thinh Nguyen wrote:
> Add a new DT option to disable LPM for gadget and update the description
> for usb2-lpm-disable related to host for clarity.
> 
> Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
> ---
>  Changes in v2:
>  - New patch
> 
>  Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

end of thread, other threads:[~2021-04-15 21:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1b784826dfee46adaa65c42d33934339d0c1f2a7.1618364095.git.Thinh.Nguyen@synopsys.com>
2021-04-14  2:13 ` [PATCH v2 0/2] usb: dwc3: gadget: Add disabling LPM option Thinh Nguyen
2021-04-14  2:13   ` [PATCH v2 1/2] dt-bindings: usb: dwc3: Add disabling LPM for gadget Thinh Nguyen
2021-04-15 21:18     ` Rob Herring

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