linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: dwc3: core: don't enable wakeup for runtime PM
@ 2021-03-03 10:37 Li Jun
  2021-03-23 11:52 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Li Jun @ 2021-03-03 10:37 UTC (permalink / raw)
  To: gregkh, balbi; +Cc: linux-usb, jun.li

Don't enable dwc3 core to wakeup system by default if runtime suspended,
this will make the power domain of dwc3 core or its parent device can't be
off while system sleep even system wakeup by usb is not required.

Signed-off-by: Li Jun <jun.li@nxp.com>
---
 drivers/usb/dwc3/core.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 6969196..a8466f6 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -1788,8 +1788,6 @@ static int dwc3_runtime_suspend(struct device *dev)
 	if (ret)
 		return ret;
 
-	device_init_wakeup(dev, true);
-
 	return 0;
 }
 
@@ -1798,8 +1796,6 @@ static int dwc3_runtime_resume(struct device *dev)
 	struct dwc3     *dwc = dev_get_drvdata(dev);
 	int		ret;
 
-	device_init_wakeup(dev, false);
-
 	ret = dwc3_resume_common(dwc, PMSG_AUTO_RESUME);
 	if (ret)
 		return ret;
-- 
2.7.4


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

* Re: [PATCH] usb: dwc3: core: don't enable wakeup for runtime PM
  2021-03-03 10:37 [PATCH] usb: dwc3: core: don't enable wakeup for runtime PM Li Jun
@ 2021-03-23 11:52 ` Greg KH
  2021-03-24  5:54   ` Jun Li
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2021-03-23 11:52 UTC (permalink / raw)
  To: Li Jun; +Cc: balbi, linux-usb

On Wed, Mar 03, 2021 at 06:37:37PM +0800, Li Jun wrote:
> Don't enable dwc3 core to wakeup system by default if runtime suspended,
> this will make the power domain of dwc3 core or its parent device can't be
> off while system sleep even system wakeup by usb is not required.
> 
> Signed-off-by: Li Jun <jun.li@nxp.com>
> ---

What commit does this fix?  Does it need to go to stable kernels?  If
so, how far back?

Please add that information to the signed-off-by area when resending.

thanks,

greg k-h

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

* RE: [PATCH] usb: dwc3: core: don't enable wakeup for runtime PM
  2021-03-23 11:52 ` Greg KH
@ 2021-03-24  5:54   ` Jun Li
  0 siblings, 0 replies; 3+ messages in thread
From: Jun Li @ 2021-03-24  5:54 UTC (permalink / raw)
  To: Greg KH; +Cc: balbi, linux-usb


> -----Original Message-----
> From: Greg KH <gregkh@linuxfoundation.org>
> Sent: Tuesday, March 23, 2021 7:52 PM
> To: Jun Li <jun.li@nxp.com>
> Cc: balbi@kernel.org; linux-usb@vger.kernel.org
> Subject: Re: [PATCH] usb: dwc3: core: don't enable wakeup for runtime PM
> 
> On Wed, Mar 03, 2021 at 06:37:37PM +0800, Li Jun wrote:
> > Don't enable dwc3 core to wakeup system by default if runtime
> > suspended, this will make the power domain of dwc3 core or its parent
> > device can't be off while system sleep even system wakeup by usb is not
> required.
> >
> > Signed-off-by: Li Jun <jun.li@nxp.com>
> > ---
> 
> What commit does this fix?  Does it need to go to stable kernels?  If so,
> how far back?
> 
> Please add that information to the signed-off-by area when resending.

Just sent out v2 with fix tag and cc to stable kernel.

Thanks
Li Jun
> 
> thanks,
> 
> greg k-h

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

end of thread, other threads:[~2021-03-24  5:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 10:37 [PATCH] usb: dwc3: core: don't enable wakeup for runtime PM Li Jun
2021-03-23 11:52 ` Greg KH
2021-03-24  5:54   ` Jun Li

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