Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 505af1fb authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Mayank Rana
Browse files

usb: phy: qusb: Make sure to have expected pulse width



In some cases it is observed that request to generate pulse with
DP/DM line is being schedule out due to usage of usleep_range()
which results into bigger pulse width (bigger than 20ms) than
expected (minimum 20us and max 20ms). Bigger pulse width results
into over voltage condition with charger. Hence fix this issue
by using spinlock to complete pulse generation operation atomically.

Change-Id: Iad6e3deb034b3cf30972d762b55643bd47a2ccf9
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 85125f66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment