mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
Revert "USB: composite: Allow configurations to handle unhandled setup requests"
This reverts commit 11d0a9ece7.
This commit is contained in:
parent
4c0244f8ef
commit
4b4400e12b
|
|
@ -836,25 +836,6 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
|
|||
value = c->setup(c, ctrl);
|
||||
}
|
||||
|
||||
/* If the vendor request is not processed (value < 0),
|
||||
* call all device registered configure setup callbacks
|
||||
* to process it.
|
||||
* This is used to handle the following cases:
|
||||
* - vendor request is for the device and arrives before
|
||||
* setconfiguration.
|
||||
* - Some devices are required to handle vendor request before
|
||||
* setconfiguration such as MTP, USBNET.
|
||||
*/
|
||||
|
||||
if (value < 0) {
|
||||
struct usb_configuration *cfg;
|
||||
|
||||
list_for_each_entry(cfg, &cdev->configs, list) {
|
||||
if (cfg && cfg->setup)
|
||||
value = cfg->setup(cfg, ctrl);
|
||||
}
|
||||
}
|
||||
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user