OSDN Git Service

usb: phy: qusb: Set clamp_dig_n signal based on usb status
authorVamsi Krishna Samavedam <vskrishn@codeaurora.org>
Tue, 9 Aug 2016 00:53:48 +0000 (17:53 -0700)
committerVamsi Krishna Samavedam <vskrishn@codeaurora.org>
Tue, 30 Aug 2016 19:22:35 +0000 (12:22 -0700)
commit299063819e84815164f8111cb33b45ce74942444
treeb54ef51b634ba94b511f90c739fa686f550d3e84
parentab26d098793adbf90b77d414663e34ac0c7315f6
usb: phy: qusb: Set clamp_dig_n signal based on usb status

Analog and digital power rails connected to the phy can be turned
on/off in any order. This may result in random leakage in the phy
as it expects certain power rails to be on/off in certain order.
Avoid random leakage on qusb2 phy by
1. Disable pll when phy is suspended/disconnected.
2. Reset and assert clamp dig_n signal to put dp/dm lines in high
   impedance state.

Change-Id: I1bafa7f824af8bbb3f67a71b81bf23b0a9c7164e
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
Documentation/devicetree/bindings/usb/msm-phy.txt
drivers/usb/phy/phy-msm-qusb-v2.c