OSDN Git Service

phy: Add USB speed related PHY modes
authorManu Gautam <mgautam@codeaurora.org>
Tue, 16 Jan 2018 10:57:09 +0000 (16:27 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 8 Mar 2018 08:26:17 +0000 (13:56 +0530)
commit3b3cd24ae61b3bbe9d3cecaff33e7cb3250ce47a
treeb321514a374f357ec67bd3c2f80f5e105ef7c57e
parentefb05a50c956b4ccd09c8401eed53bf3894d4026
phy: Add USB speed related PHY modes

Add following USB speed related PHY modes:
LS (Low Speed), FS (Full Speed), HS (High Speed), SS (Super Speed)

Speed related information is required by some QCOM PHY drivers
to program PHY monitor resume/remote-wakeup events in suspended
state. Speed is needed in order to set correct polarity of wakeup
events for detection. E.g. QUSB2 PHY monitors DP/DM line state
depending on whether speed is LS or FS/HS to detect resume.
Similarly QMP USB3 PHY in SS mode should monitor RX terminations
attach/detach and LFPS events depending on SSPHY is active or not.

Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-core.c
include/linux/phy/phy.h