Commit 76c1123
usb: dwc3: gadget: Move vbus draw to workqueue context
[ Upstream commit 54aaa3b ]
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: 99288de ("usb: dwc3: add an alternate path in vbus_draw callback")
Cc: stable <stable@kernel.org>
Tested-by: Samuel Wu <wusamuel@google.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Prashanth K <prashanth.k@oss.qualcomm.com>
Link: https://patch.msgid.link/20260204054155.3063825-1-prashanth.k@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent aa8d68d commit 76c1123
3 files changed
+25
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1892 | 1892 | | |
1893 | 1893 | | |
1894 | 1894 | | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
1895 | 1909 | | |
1896 | 1910 | | |
1897 | 1911 | | |
| |||
1906 | 1920 | | |
1907 | 1921 | | |
1908 | 1922 | | |
| 1923 | + | |
1909 | 1924 | | |
1910 | 1925 | | |
1911 | 1926 | | |
| |||
2097 | 2112 | | |
2098 | 2113 | | |
2099 | 2114 | | |
2100 | | - | |
| 2115 | + | |
| 2116 | + | |
2101 | 2117 | | |
| 2118 | + | |
2102 | 2119 | | |
2103 | 2120 | | |
2104 | 2121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
| 1037 | + | |
| 1038 | + | |
1037 | 1039 | | |
1038 | 1040 | | |
1039 | 1041 | | |
| |||
1202 | 1204 | | |
1203 | 1205 | | |
1204 | 1206 | | |
| 1207 | + | |
| 1208 | + | |
1205 | 1209 | | |
1206 | 1210 | | |
1207 | 1211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3139 | 3139 | | |
3140 | 3140 | | |
3141 | 3141 | | |
3142 | | - | |
3143 | | - | |
3144 | 3142 | | |
3145 | 3143 | | |
3146 | 3144 | | |
3147 | 3145 | | |
3148 | 3146 | | |
3149 | 3147 | | |
3150 | 3148 | | |
3151 | | - | |
3152 | | - | |
| 3149 | + | |
| 3150 | + | |
3153 | 3151 | | |
3154 | | - | |
| 3152 | + | |
3155 | 3153 | | |
3156 | 3154 | | |
3157 | 3155 | | |
| |||
0 commit comments