[PATCH V2]usb: dwc2: Clear GUSBCFG.UsbTrdTim before setting

2016-09-23 Thread Pengcheng Li
The USBTRDTIM field needs to be cleared before setting a new value. Otherwise it will result in an incorrect value if phyif == GUSBCFG_PHYIF8. Change-Id: Ib3e33cf4fd15ada41dc070ff7b93858daafbd10f Signed-off-by: Pengcheng Li Acked-by: John Youn --- drivers/usb/dwc2/gadget.c | 4 ++-- 1 file

[PATCH] usb: dwc2: add USBTrdTim to initial value

2016-09-21 Thread Pengcheng Li
After dwc2_core_reset,register is to the initial value, and the USBTrdTim vale is 0x5. If hsotg->phyif = GUSBCFG_PHYIF8, after the dwc2_writel,the value is 0xd.So we need to set the USBTrdTim to 0. Signed-off-by: Pengcheng Li --- drivers/usb/dwc2/gadget.c | 4 ++-- 1 file changed, 2 inserti

[PATCH] usb:solve resume usb device identification problem

2016-07-11 Thread Pengcheng Li
A usb device in the connection state. Then host is suspend and resume. But the usb device could not be at the right speed. We should be reset the reset. Signed-off-by: Pengcheng Li --- drivers/usb/core/hub.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb