OSDN Git Service

usb: dwc3: Determine connection speed for HS PHY
authorDevdutt Patnaik <dpatnaik@codeaurora.org>
Tue, 21 Jun 2016 00:09:37 +0000 (17:09 -0700)
committerHemant Kumar <hemantk@codeaurora.org>
Wed, 20 Jul 2016 18:34:47 +0000 (11:34 -0700)
commit4d0a155ed7773832119d62f9450a338d0fd078ec
treeaec9de2290d3eb8ac2a372bd0276bf29d43a7b81
parent54178f48e08d9b7004aaa1a57f46319c52f4e3dc
usb: dwc3: Determine connection speed for HS PHY

DP/DM linestate is needed by the QUSB2 PHY driver to configure the
polarity of DP/DM transition triggers for exiting low power mode.
This was previously available via the  QUSB2PHY_PORT_UTMI_STATUS
PHY register which is now deprecated. In order to correctly determine
the interrupt polarity we need to pass the current operating speed
to the QUSB2 PHY driver. The PHY driver uses mode, speed and
cable connection status to determine the linestate and configure
interrupt polarities for wake up. Add logic to determine operating
speed for host and device mode cases.

Change-Id: Iaede1269f514a314bd9717a33100f748e7753b2a
Signed-off-by: Devdutt Patnaik <dpatnaik@codeaurora.org>
drivers/usb/dwc3/dwc3-msm.c
include/linux/usb/msm_hsusb.h