Re: [PATCH] usb: dwc3: gadget: Move vbus draw to workqueue context
From: Prashanth K
Date: Tue Feb 03 2026 - 23:17:45 EST
On 2/4/2026 9:29 AM, Kyle Tso wrote:
> On Thu, Jan 29, 2026 at 7:16 PM Prashanth K
> <prashanth.k@xxxxxxxxxxxxxxxx> wrote:
>>
>> Currently dwc3_gadget_vbus_draw() can be called from atomic
>> context, which in turn invokes power-supply-core APIs. And
>> some these PMIC APIs have operations that may sleep, leading
>> to kernel panic.
>>
>> Fix this by moving the vbus_draw into a workqueue context.
>>
>> Fixes: 66e0ea341a2a ("usb: dwc3: core: Defer the probe until USB power supply ready")
>
> I think the following patch is the one to fix:
>
> https://lore.kernel.org/all/20210222115149.3606776-3-raychi@xxxxxxxxxx/
>
Yes agreed, i added 66e0ea341a2a because it can be backported without
conflicts only till 66e0ea341a2a, but I'll change it to the correct one.
Thanks for confirming,
Prashanth K