OSDN Git Service

usb: dwc2: host: Fix transaction errors in host mode
authorMinas Harutyunyan <hminas@synopsys.com>
Fri, 19 Jan 2018 10:44:20 +0000 (14:44 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 13 Mar 2018 08:47:43 +0000 (10:47 +0200)
commit92a8dd26464e1f21f1d869ec53717bd2c1200d63
tree5284fb6bfa8544da5eaf36c960a667ff6fd50ba9
parenta82c7abdf8fc3b09c4a0ed2eee6d43ecef2ccdb0
usb: dwc2: host: Fix transaction errors in host mode

Added missing GUSBCFG programming in host mode, which fixes
transaction errors issue on HiKey and Altera Cyclone V boards.

These field even if was programmed in device mode (in function
dwc2_hsotg_core_init_disconnected()) will be resetting to POR values
after core soft reset applied.
So, each time when switching to host mode required to set this field
to correct value.

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/hcd.c