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