OSDN Git Service

usb: phy: handle phy related regulators properly
authorHemant Kumar <hemantk@codeaurora.org>
Tue, 30 Aug 2016 23:54:19 +0000 (16:54 -0700)
committerHemant Kumar <hemantk@codeaurora.org>
Wed, 31 Aug 2016 02:14:34 +0000 (19:14 -0700)
commitd72551997664fb9d50babf5597039d7a8883afe9
tree8429a6834ade23707515579228d66754141c230f
parentab26d098793adbf90b77d414663e34ac0c7315f6
usb: phy: handle phy related regulators properly

Currently driver is enabling all the regulators in probe
even if usb cable is not connected which has power impact.
Hence enable regulators before the phy initialization sequence
and move regulator_set_voltage & enable/disable API for vdd supply
in msm_ssusb_qmp_ldo_enable() to handle all the regulators from one
place.

Change-Id: Ibc4cf8328c209dbf968b7d6c498e1462397be351
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
drivers/usb/phy/phy-msm-ssusb-qmp.c