usb: dwc2: gadget: fix phy interface configuration
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Fri, 30 Jan 2015 08:09:35 +0000 (09:09 +0100)
committerFelipe Balbi <balbi@ti.com>
Fri, 30 Jan 2015 16:33:54 +0000 (10:33 -0600)
commitfa4a8d722bc2f0b1887ea929874a0f6754eda8b4
tree6582579df9dbd6dd855187e219005b4fc03b4362
parentccb34a9101b340885b1ca3ec766e8544a6a433a7
usb: dwc2: gadget: fix phy interface configuration

hsotg->phyif is set in dwc2_gadget_init according to phy interface
width. Use it for configuration instead of hardcoded value.
Moreover, set USB turnaround time according to phy width.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c