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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:28:37 +0000 (07:28 +0200)
commitf0ace9206d98b7b07d06ecf9c07aeca080cc91c1
tree3d7516af583ccd990a7a0e6912dd5f23953da7ee
parent6b33ae7a7e2c01c772b2ba94cea57d66ee1c0f5e
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