Commit 5e5caf4
usb: gadget: composite: Inform controller driver of self-powered
Different configuration/condition may draw different power. Inform the
controller driver of the change so it can respond properly (e.g.
GET_STATUS request). This fixes an issue with setting MaxPower from
configfs. The composite driver doesn't check this value when setting
self-powered.
Cc: stable@vger.kernel.org
Fixes: 88af8bb ("usb: gadget: the start of the configfs interface")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>1 parent eeead84 commit 5e5caf4
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
864 | 869 | | |
865 | 870 | | |
866 | 871 | | |
| |||
2279 | 2284 | | |
2280 | 2285 | | |
2281 | 2286 | | |
| 2287 | + | |
2282 | 2288 | | |
2283 | 2289 | | |
2284 | 2290 | | |
| |||
2307 | 2313 | | |
2308 | 2314 | | |
2309 | 2315 | | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
2310 | 2319 | | |
2311 | 2320 | | |
2312 | 2321 | | |
| |||
0 commit comments