OSDN Git Service

power: smb-lib: enable DPDM regulator at CC attach
authorAshay Jaiswal <ashayj@codeaurora.org>
Mon, 17 Jul 2017 09:19:05 +0000 (14:49 +0530)
committerAshay Jaiswal <ashayj@codeaurora.org>
Fri, 28 Jul 2017 11:11:08 +0000 (16:41 +0530)
commit2cf2aaf54ce270f5d00393257f6283eba7e6dda3
tree3e012d1c522ddcf88da7884064b80d49be93b45b
parentac8211566ba58dd2be22c399f559a44a09054bf4
power: smb-lib: enable DPDM regulator at CC attach

In case of quick back-to-back  insertion/removal of USB
there is a possibility that VBUS does not fall below the
1V usb-plugout threshold and hence the subsequent insertion
does not generate a plug-in event. This keeps the DPDM
regulator disabled at insertion thus impacting the APSD result.

Fix this by voting to enable the DPDM regulator in the cc-attach
handler.

CRs-Fixed: 2042071
Change-Id: I37a32081f0847965e34eb1c4114602ec61e9a005
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
drivers/power/supply/qcom/smb-lib.c