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

Skip to content
Commit bd22616c authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: gadget: f_mdm_data: Do not queue OUT requests if MDM is disconnected



Consider a case where multiple OUT requests are queued onto the
bus. When the MDM is disconnected, then bridge is closed. But
because of the USB composition on the EAP, the host still thinks
that this is a bridge usecase and keeps sending data onto the OUT
endpoint. As expected, all these data packets fail when we try to
send it onto the MDM's endpoint. But mdm_data_start_rx still
keeps queueing these completed requests back onto the bus. Thus
host keeps sending data packets and the log is full of
data_bridge_write errors. Fix this by not queueing requests any
more if MDM is disconnected.

Change-Id: I59010942f3a79ab1759ac340088dc299c31b0b3c
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent d195d549
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