Loading
usb: gadget: qc_ecm: Fix bus resume case
With remote wakeup disable from host, USB IPA BAM Pipes are being
disconnected while performing USB bus suspend functionality and ECM
IPA driver is notified as USB cable disconnect event. On resume case,
those pipes are re-connected and ECM IPA driver is notified as USB
cable connect event. While performing USB IPA disconnect sequence,
ecm_mdm_ready_trigger is not being updated (i.e. set to false). Hence
on resume case received ECM network interface UP notification is
ignored to queue TX/RX transfers which results in no data transfer
between host and device for ECM interface. Fix this issue by setting
ecm_mdm_ready_trigger flag to false while performing USB bus suspend
functionality.
CRs-Fixed: 743363
Change-Id: I2f0c3f4bbaedce8e7b9df6458b01bfe88ed9f8b7
Signed-off-by:
Mayank Rana <mrana@codeaurora.org>