Skip to content
Snippets Groups Projects
Commit 6191f6b3 authored by choongryeol.lee's avatar choongryeol.lee Committed by Devin Kim
Browse files

usb: phy-msm-usb: fix usb online prop setting failure


When a usb removal is detected, the vbus power is set to
0mA and the online property is set to 0. If the requested
power is same as a cur_power, the request is simply ignored.
However, since the cur_power is initially 0, the request
for 0mA could be ignored at booting. If the request for 0mA
is ignored, the online property setting is also ignored.
Fix this by setting cur_power to -EINVAL initially.

Change-Id: I9dd1623be6fe463de200337e81bef5c496a40413
Signed-off-by: default avatarchoongryeol.lee <choongryeol.lee@lge.com>
parent 8c7737ed
Branches
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment