phy: exynos4212-usb: Use refcount to power device PHY for HSIC0
authorTomasz Figa <t.figa@samsung.com>
Thu, 24 Apr 2014 11:25:34 +0000 (13:25 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:30 +0000 (11:47 +0900)
commit3d9d0681f245f141c89aa0daf6a549788a1388f7
tree1922d215b12f10cb9e676c3b5087f8611ddf012d
parent96a5c528f7dd4aa85024593f232e4de64d811b98
phy: exynos4212-usb: Use refcount to power device PHY for HSIC0

HSIC0 requires device PHY to be powered up and the driver handles that
already, but there is no reference counting of device PHY power state,
so unplugging USB cable powers it down, breaking modem IF operation.

This patch fixes the issue by adding handling of reference counting of
device PHY to HSIC0 power-down/-up.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Change-Id: I14b1825fec3cd9c1b2652b89f275a50c73359ad6
drivers/phy/phy-exynos4212-usb.c