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

Skip to content
Commit 62aec017 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa
Browse files

f_gsi: Bail out if suspend event is pending before enabling data path



When cable is connected, following sequence is expected to happen:
set_alt() ->ipa_connect_channels()->ipa_data_path(). As part of
ipa_data_path(), endpoints will be enabled and start ringing Doorbell
to GSI.  If suspend interrupt is received after this, it stops ringing
Doorbell to GSI and suspends path to GSI by calling xdci_suspend().

If suspend is received before enablement of data path as part of connect
handling, driver does enable GSI endpoints and starts ringing Doorbell to
GSI. This is not expected and resulting in USB controller accessing invalid
memory and causing SMMU fault. Fix it by bailing out data path enablement
if suspend event is pending.

Change-Id: I1603e4c675f85abff284c385c96230f1fb54231e
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 4b19ee48
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