mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
gadget: bcdUSB version back to 2.0 when not SuperSpeed
Some of PC USB3.0 port don't support bcdUSB 2.1 version. But the phone bcdUSB will focus on bcdUSB 2.1.then USB gadget will reset continually.Change bcdUSB to 2.0 to compat all PC USB port type. 07-02 08:05:34.853 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt 07-02 08:05:35.182 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt 07-02 08:05:35.415 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt 07-02 08:05:35.647 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt 07-02 08:05:44.171 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt origin-CR: (CR) Change-Id: Icb46a95226caecc9778c6889a85654f97fa85012 Signed-off-by: liuyc20 <liuyc20@lenovo.com> Reviewed-on: https://gerrit.mot.com/1383246 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiaojun Ji <jixj@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1449152 Reviewed-by: Yuecai Liu <liuyc20@motorola.com> Reviewed-on: https://gerrit.mot.com/1751275 Reviewed-by: Zonghua Liu <a17671@motorola.com> Reviewed-on: https://gerrit.mot.com/1785341
This commit is contained in:
parent
8b3d7897c2
commit
b4bf1d6d54
1 changed files with 1 additions and 1 deletions
|
|
@ -1743,7 +1743,7 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
|
|||
cdev->desc.bcdUSB = cpu_to_le16(0x0320);
|
||||
cdev->desc.bMaxPacketSize0 = 9;
|
||||
} else {
|
||||
cdev->desc.bcdUSB = cpu_to_le16(0x0210);
|
||||
cdev->desc.bcdUSB = cpu_to_le16(0x0200);
|
||||
}
|
||||
} else {
|
||||
if (gadget->lpm_capable)
|
||||
|
|
|
|||
Loading…
Reference in a new issue