From: 黄涛 Date: Sat, 30 Jul 2011 14:48:42 +0000 (+0800) Subject: Revert "USB: composite: Allow configurations to handle unhandled setup requests" X-Git-Tag: firefly_0821_release~9921 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b4400e12be7419fb1bc332bd71d69fac2a42378;p=firefly-linux-kernel-4.4.55.git Revert "USB: composite: Allow configurations to handle unhandled setup requests" This reverts commit 11d0a9ece74897740ffb987675c46adf1f782724. --- diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 39f61affbae6..0dedc681fc30 100755 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -836,25 +836,6 @@ unknown: 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; }