OSDN Git Service

USB: dwc3-msm: Disable pipe clock requirement for HS/FS only mode
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>
Fri, 21 Oct 2016 09:32:09 +0000 (15:02 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 26 Oct 2016 05:03:59 +0000 (22:03 -0700)
USB3 core expects pipe clock input for USB connection establishment
and functionality working. In case of maximum speed of USB3 core set
to HS/FS mode, it is required to disable pipe clock requirement and
instead use UTMI clock from HS PHY as clock input. Hence disable
this pipe clock requirement for the case, where maximum speed is set
to FS as well.

Change-Id: Ife9d6a16e1607b40c71eb1897947bf4645ac9561
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
drivers/usb/dwc3/dwc3-msm.c

index 08006d8..e5a88ad 100644 (file)
@@ -1651,9 +1651,10 @@ static void dwc3_msm_notify_event(struct dwc3 *dwc, unsigned event)
 
                /*
                 * Below sequence is used when controller is working without
-                * having ssphy and only USB high speed is supported.
+                * having ssphy and only USB high/full speed is supported.
                 */
-               if (dwc->maximum_speed == USB_SPEED_HIGH) {
+               if (dwc->maximum_speed == USB_SPEED_HIGH ||
+                                       dwc->maximum_speed == USB_SPEED_FULL) {
                        dwc3_msm_write_reg(mdwc->base, QSCRATCH_GENERAL_CFG,
                                dwc3_msm_read_reg(mdwc->base,
                                QSCRATCH_GENERAL_CFG)