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

Skip to content
Commit 589cd99a authored by Saket Saurabh's avatar Saket Saurabh
Browse files

usb: phy-msm-usb: Add check to ignore duplicate PMIC events



USB gets notification from PMIC for vbus connect and disconnect events.
Based on the event notification type, USB schedule state machine where
it executes operations needed for usb connnect/disconnect processing.
If duplicate connect/disconnect notifications (spurious events) comes
from PMIC, then in current code USB schedule state machine without
checking previous notification type from PMIC.

In current scenario, USB is getting duplicate disconnect events from
PMIC (2nd disconnect is spurious) followed by connect event. Due to these
sequence of events PM counter in the otg state machine is decremented to
zero which calls otg runtime suspend leading to unclocked access while
processing USB connect.

Fix the issue by adding proper check to ignore duplicate PMIC connect
and disconnect notifications.

CRs-Fixed: 664203
Change-Id: I59dac5bf42bf24e9670b6fbdb8a4d736b195d88f
Signed-off-by: default avatarSaket Saurabh <ssaurabh@codeaurora.org>
parent c44dbd36
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