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

Commit bc3c4040 authored by Bar Weiner's avatar Bar Weiner Committed by Gerrit - the friendly Code Review server
Browse files

usb: bam: remove unnecessary pm_runtime call



The disconnect flow for pm_runtime calls is handled
from the gadget. Removing unnecessary - and potentially
buggy - call from the suspend_core function.

Change-Id: I53ff724c5740e5ff0cec525591cb1c77f1778a9c
Signed-off-by: default avatarBar Weiner <bweiner@codeaurora.org>
parent 4d6f4537
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -813,8 +813,6 @@ static void _usb_bam_suspend_core(enum usb_ctrl bam_type, bool disconnect)
	spin_lock(&usb_bam_ipa_handshake_info_lock);
	info[bam_type].lpm_wait_handshake = false;
	info[bam_type].lpm_wait_pipes = 0;
	if (disconnect)
		pm_runtime_put_noidle(usb_device);

	if (info[bam_type].pending_lpm) {
		info[bam_type].pending_lpm = 0;