Loading drivers/usb/gadget/composite.c +10 −0 Original line number Diff line number Diff line Loading @@ -610,6 +610,16 @@ static int set_config(struct usb_composite_dev *cdev, unsigned power = gadget_is_otg(gadget) ? 8 : 100; int tmp; /* * ignore 2nd time SET_CONFIGURATION * only for same config value twice. */ if (cdev->config && (cdev->config->bConfigurationValue == number)) { DBG(cdev, "already in the same config with value %d\n", number); return 0; } if (number) { list_for_each_entry(c, &cdev->configs, list) { if (c->bConfigurationValue == number) { Loading Loading
drivers/usb/gadget/composite.c +10 −0 Original line number Diff line number Diff line Loading @@ -610,6 +610,16 @@ static int set_config(struct usb_composite_dev *cdev, unsigned power = gadget_is_otg(gadget) ? 8 : 100; int tmp; /* * ignore 2nd time SET_CONFIGURATION * only for same config value twice. */ if (cdev->config && (cdev->config->bConfigurationValue == number)) { DBG(cdev, "already in the same config with value %d\n", number); return 0; } if (number) { list_for_each_entry(c, &cdev->configs, list) { if (c->bConfigurationValue == number) { Loading