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

Commit 4d7ab821 authored by Maya Erez's avatar Maya Erez
Browse files

wil6210: disable sensing when support_sensing_over_spi is unset



RGF_USER_USAGE_6 is not cleared on SW reset, hence needs
to clear this bit when support_sensing_over_spi is not set to
prevent a case where it is set from previous run.

Change-Id: Id5da75ce522e9955c9095cecf346a506d6fd4e1b
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent 773b595b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1719,6 +1719,9 @@ int wil_reset(struct wil6210_priv *wil, bool load_fw)
		wil_dbg_misc(wil, "notify FW to enable SPI for sensing\n");
		wil_s(wil, RGF_USER_USAGE_6, BIT_SPI_SENSING_SUPPORT);
		wmi_reset_spi_slave(wil);
	} else {
		wil_dbg_misc(wil, "notify FW to disable SPI for sensing\n");
		wil_c(wil, RGF_USER_USAGE_6, BIT_SPI_SENSING_SUPPORT);
	}

	if (wil->platform_ops.notify) {