summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/composite.c
diff options
context:
space:
mode:
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-05-16 16:54:14 +0530
committerVijayavardhan Vennapusa <vvreddy@codeaurora.org>2017-05-16 17:01:40 +0530
commit325dc282c793786cce92100fe7f995e757441e3f (patch)
tree138bfcd66707ddad759c7e11eada16cb8b02fbf1 /drivers/usb/gadget/composite.c
parent406ab7d2d4f3a72f3ef1dd10f894e6c88ee3ac01 (diff)
USB: composite: Advertise USB version as 0x200 if max speed is HS
Currently driver is advertising as USB device as 0x210 even if maximum speed is limited to high speed mode. This is causing throughput degradation for RNDIS with host machines that enables USB2 LPM. Hence disable USB2 LPM for device having maximum speed limited to high speed mode by advertizing as 0x200. Change-Id: I9d7d62f35284f11faa7e933e755277d24dce1038 Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r--drivers/usb/gadget/composite.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index a844ea4d06db..eeccae8bfc1b 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -1654,9 +1654,6 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
DBG(cdev,
"Config HS device with LPM(L1)\n");
}
- } else if (!disable_l1_for_hs) {
- cdev->desc.bcdUSB = cpu_to_le16(0x0210);
- DBG(cdev, "Config HS device with LPM(L1)\n");
}
value = min(w_length, (u16) sizeof cdev->desc);