Re: [PATCH] usb: dwc3: Fix spurious wakeup when port is on device mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 07, 2024, Guilherme G. Piccoli wrote:
> On 06/03/2024 21:40, Thinh Nguyen wrote:
> > [...]
> > 
> > Can you try this? I made some adjustments to the previous conditions:
> > * If operate as device mode, only allow system wakeup if there's gadget
> > * driver binded.
> > * Make sure to pass the wakeup config to the xhci platform device when
> >   switch to host.
> > 
> > If it works, I'll clean this up and split this into 2 separate patches.
> > 
> > Thanks,
> > Thinh
> > 
> > <patch>
> 
> 
> Hi Thinh, thanks again for your support!
> 
> I've tested the suggested patch, and it's working fine in both device
> and host modes. In both modes the system suspends and wakes up fine.
> 
> And when in host mode, with USB connected, I see the following on dmesg:
> "xhci-hcd xhci-hcd.2.auto: xhci_plat_suspend: device_may_wakeup: 1"

That's great! I assumed you tested remote wakeup from the keyboard?

> 
> Please CC me in the official patches if possible, I can send my
> Tested-by tags there.
> Cheers,
> 
> 

Thanks for testing! I sent out the patch. I think it can be done in a
single patch. Your Tested-by will be very helpful.

BR,
Thinh




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux