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

Commit 7ab91b27 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: gadget: gsi: Fix handling of MSG PACKET FILTER



When USB RNDIS network device is bridged with other network device
on windows host machine, it has been observed that many MSG PACKET
FILTER packet with zero and non-zero value are send from host to
device. USB GSI state machines handles those and results into case
where TRB buffer's address is updated wrongly causing bus error
with IPA GSI. Fix this issue as below:
- Move MSG PACKET FILTER handling as part of ipa_work_handler()
- Add blocking USB3 ringing doorbell on receiving MSG PACKET FILTER
with non-zero value.
- Before processing HOST_NRDY event, see already posted event. If it
is HOST_READY event, then ignore HOST_NRDY and HOST_READY to avoid
performing operations related to HOST_NRDY and HOST_READY again.

CRs-Fixed: 1059577
Change-Id: I3ac8f740d7b84212da1d799b563a6e8ef1c9b493
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent f2304aea
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