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

Skip to content
Commit bd16a409 authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: f_gsi: Prevent enabling data path if disconnect follows connect



In the state CONNECT_IN_PROGRESS if EVT_CONNECT is
followed by a EVT_DISCONNECT event, there is a possible case
where doorbell is unblocked with endpoints disabled resulting
in a possible spurious doorbell from the USB wrapper.

Fix this by bailing out if a connect event is followed
by disconnect.

Change-Id: I73f971548b6c13924e9f857e57fa6dd517a4e56a
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 75ecf1a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment