mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
Merge "usb: gadget: Fix issue in config_desc with OS descriptor handling"
This commit is contained in:
commit
b3226a5b62
1 changed files with 0 additions and 8 deletions
|
|
@ -612,18 +612,10 @@ static int config_desc(struct usb_composite_dev *cdev, unsigned w_value)
|
|||
w_value &= 0xff;
|
||||
|
||||
pos = &cdev->configs;
|
||||
c = cdev->os_desc_config;
|
||||
if (c)
|
||||
goto check_config;
|
||||
|
||||
while ((pos = pos->next) != &cdev->configs) {
|
||||
c = list_entry(pos, typeof(*c), list);
|
||||
|
||||
/* skip OS Descriptors config which is handled separately */
|
||||
if (c == cdev->os_desc_config)
|
||||
continue;
|
||||
|
||||
check_config:
|
||||
/* ignore configs that won't work at this speed */
|
||||
switch (speed) {
|
||||
case USB_SPEED_SUPER_PLUS:
|
||||
|
|
|
|||
Loading…
Reference in a new issue