summaryrefslogtreecommitdiff
path: root/block/blk.h
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2017-04-27 19:39:58 -0700
committerHemant Kumar <hemantk@codeaurora.org>2017-05-16 15:40:09 -0700
commit29e527349b9b1a45ab939980037605546e191096 (patch)
tree19a031ae201c0660de2c14095331bf964111d86d /block/blk.h
parent1fb7012ac69b496bf6a286f4b10c621fc3e7f1de (diff)
usb: phy-msm-qusb-v2: Add support for reference counting of regulators
Upon cable disconnect PMI calls qusb_phy_update_dpdm() to turn off phy regulators before notifying vbus off to usb. As a result phy power down sequence is executed with phy regulators turned off. This may result into improper phy line state. Fix this issue by adding a reference counter to keep track of all regulator enable and disable requests and only disable regulator when ref count becomes zero. Also add a mutex in qusb_phy_enable_power() API to prevent any race condition in enabling and disabling phy regulators between the callers i.e. PMI and phy driver. Change-Id: I620f2b8cbf4f9271db81d5a517f1ee2a13c57f27 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions