usb: gadget: Handle function control requests before set config
some function drivers receive control requests before configuration is
selected, which are not being handled due to configuratiopn checks in
android gadget driver, which is resulting in stall on control endpoint.
Fix this issue, by removing the configuration checks, so that function
driver control requests are handled properly.
CRs-Fixed: 400265
Change-Id: I90975bb6a7c0201de7715932469c603fea6954af
Signed-off-by: Chiranjeevi Velempati <cvelempa@codeaurora.org>
diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/android.c
index 46f21a7..0fbe397 100644
--- a/drivers/usb/gadget/android.c
+++ b/drivers/usb/gadget/android.c
@@ -2131,7 +2131,6 @@
gadget->ep0->driver_data = cdev;
list_for_each_entry(conf, &dev->configs, list_item)
- if (&conf->usb_config == cdev->config)
list_for_each_entry(f,
&conf->enabled_functions,
enabled_list)