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

Commit eb1f45d3 authored by Maya Erez's avatar Maya Erez
Browse files

wil6210: restore bus voting before resuming the device



Move the bus request restore to be done prior to
sending wmi_resume to the device, as the device can restore
the data path upon receiving this command.

Change-Id: Ib2442fcfea055a855bb6be65f9013bb7ad754767
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent 290544cf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -80,6 +80,8 @@ static int wil_resume_keep_radio_on(struct wil6210_priv *wil)
	wil_c(wil, RGF_USER_CLKS_CTL_0, BIT_USER_CLKS_RST_PWGD);
	wil_unmask_irq(wil);

	wil6210_bus_request(wil, wil->bus_request_kbps_pre_suspend);

	/* Send WMI resume request to the device */
	rc = wmi_resume(wil);
	if (rc) {
@@ -96,8 +98,6 @@ static int wil_resume_keep_radio_on(struct wil6210_priv *wil)
		}
	}

	wil6210_bus_request(wil, wil->bus_request_kbps_pre_suspend);

out:
	if (rc)
		set_bit(wil_status_suspended, wil->status);