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

Commit 67640d5e authored by Mayank Rana's avatar Mayank Rana
Browse files

USB: gadget: Don't call IPA functions's disconnect from atomic context



ecm_ipa_disconnect() and rndis_ipa_pipe_disconnect_notify() can't be
called from atomic context as those functions may sleep. USB cable
disconnect and USB bus suspend (when remote wakeup is not enabled)
are 2 use cases where these APIs are being used from
bam_data_disconnect() API. In USB bus suspend case, it is being called
from supsend interrupt context (atomic context). Hence move IPA driver
related disconnect APIs call from bam_data_disconnect() to disconnect
work context. And also make sure that before IPA drivers' cleanup
API is called, this particular disconnect work is completed.

CRs-Fixed: 752351
Change-Id: Ie2811f7c72ae5b9d62738c86dc2d4af398f18c70
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 4f91f3d1
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