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

Commit 22df3721 authored by Lena Salman's avatar Lena Salman
Browse files

drivers: usb: mbim: mark cable disconnected when no remote wakeup



In a scenario where the MBIM host doesn't permit remote wakeup,
it is still possible for the device to try and queue packets
(ie: hibernate, sleep). This resulted in a bad LPM sequence and an error
message: "Cannot transition the HS PHY to L2". This patch marks device
offline when pipes are disconnected and remote
wakeup is not enabled.

Change-Id: I43ce0dd94d523bb5155cac26b00bdb10173d6eca
CRs-fixed: 717592
Signed-off-by: default avatarLena Salman <esalman@codeaurora.org>
parent 163e94f6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1467,6 +1467,7 @@ static void mbim_suspend(struct usb_function *f)
		pr_debug("in_ep_desc_backup = %p, out_ep_desc_backup = %p",
			mbim->in_ep_desc_backup, mbim->out_ep_desc_backup);

		atomic_set(&mbim->online, 0);
		mbim_bam_disconnect(mbim);
	}
}
@@ -1507,6 +1508,7 @@ static void mbim_resume(struct usb_function *f)
		pr_debug("in_ep_desc_backup = %p, out_ep_desc_backup = %p",
			mbim->in_ep_desc_backup, mbim->out_ep_desc_backup);

		atomic_set(&mbim->online, 1);
		mbim_bam_connect(mbim);
	}
}