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>
This commit is contained in:
parent
406ab7d2d4
commit
325dc282c7
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue