diff options
author | Matt Porter <matt.porter@linaro.org> | 2013-11-25 09:50:50 -0500 |
---|---|---|
committer | Matt Porter <matt.porter@linaro.org> | 2013-11-25 13:09:57 -0500 |
commit | 6e2fa23f4c549f5b2380f9b1a3410e12daea0e61 (patch) | |
tree | 3ddeba98ea4eb5732dd2a6403cf0a30f81e82b89 | |
parent | a57cd2094000f0a88bd0debc8924b2639fe6c90b (diff) |
usb: gadget: s3c-hsotg: use generic phy_init()/phy_exit() support
If a generic phy is present, call phy_init()/phy_exit(). This supports
generic phys that must be soft reset before power on.
Signed-off-by: Matt Porter <matt.porter@linaro.org>
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index da3879b5851..8dfe33f7df0 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c @@ -3622,6 +3622,9 @@ static int s3c_hsotg_probe(struct platform_device *pdev) goto err_supplies; } + if (hsotg->phy) + phy_init(hsotg->phy); + /* usb phy enable */ s3c_hsotg_phy_enable(hsotg); @@ -3715,6 +3718,8 @@ static int s3c_hsotg_remove(struct platform_device *pdev) } s3c_hsotg_phy_disable(hsotg); + if (hsotg->phy) + phy_exit(hsotg->phy); clk_disable_unprepare(hsotg->clk); return 0; |