[linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock

2024-06-17 Thread Meng Li via lists.yoctoproject.org
When config CONFIG_USB_DWC3_DUAL_ROLE is selected, and trigger system to enter suspend status with below command: echo mem > /sys/power/state There will be a deadlock issue occurring. Detailed invoking path as below: dwc3_suspend_common() spin_lock_irqsave(&dwc->lock, flags); <-- 1

Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock

2024-06-18 Thread Bruce Ashfield
On Tue, Jun 18, 2024 at 12:02 AM Meng Li wrote: > > When config CONFIG_USB_DWC3_DUAL_ROLE is selected, and trigger system > to enter suspend status with below command: > echo mem > /sys/power/state > There will be a deadlock issue occurring. Detailed invoking path as > below: > dwc3_suspend_common

Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock

2024-06-18 Thread Meng Li via lists.yoctoproject.org
> -Original Message- > From: linux-yocto@lists.yoctoproject.org > On Behalf Of Bruce Ashfield > Sent: Tuesday, June 18, 2024 8:29 PM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg

Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock

2024-06-18 Thread Bruce Ashfield
octo@lists.yoctoproject.org > > Subject: Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg > > mode during gadget suspend/resume to avoid deadlock > > > > CAUTION: This email comes from a non Wind River email account! > > Do not click links or open attachm

Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg mode during gadget suspend/resume to avoid deadlock

2024-06-18 Thread Meng Li via lists.yoctoproject.org
> -Original Message- > From: Bruce Ashfield > Sent: Tuesday, June 18, 2024 9:21 PM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto] [v2 PATCH] usb: dwc3: core: remove lock of otg > mode during gadget suspend/resume to avoid