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

Commit 57c7b371 authored by Jack Pham's avatar Jack Pham Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: qti: Don't call rmnet_disconnect from ctrl_disconnect



Though the name is confusing, the g_rmnet->disconnect() callback
should only be called in cases where the RmNet function needs to
indicate control disconnect to the host, such as when the modem
goes offline. This is because frmnet_disconnect() issues a CDC
NETWORK_CONNECTION notification message on the interrupt endpoint
to indicate the control interface has gone down. However, this
should not be called from the gqti_ctrl_disconnect() function,
which is only called when the USB bus is suspended or when the
cable is disconnected--in these cases, it is invalid to try to
to queue an interrupt packet since it will always fail.

Change-Id: Idca9a9385d7be78601227d9ef56318cb03c80c19
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 522f13ef
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