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

Commit 1ec11f55 authored by Mayank Rana's avatar Mayank Rana
Browse files

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: default avatarMayank Rana <mrana@codeaurora.org>
parent 9998424e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -498,6 +498,7 @@ static int ecm_qc_bam_disconnect(struct f_ecm_qc *dev)
	pr_debug("%s: dev:%p. Disconnect BAM.\n", __func__, dev);

	bam_data_disconnect(&dev->bam_port, 0);
	__ecm->ecm_mdm_ready_trigger = false;

	return 0;
}