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

Commit 7ff504b4 authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Set resume bit for MHI before power off



Set MHI resume bit in order to allow MHI power off in suspend
state.

Change-Id: Idf02e330b77f26ad5be49dd68774d7791fdb966d
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent dde75303
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1355,6 +1355,7 @@ void cnss_pci_stop_mhi(struct cnss_pci_data *pci_priv)

	plat_priv = pci_priv->plat_priv;

	cnss_pci_set_mhi_state_bit(pci_priv, CNSS_MHI_RESUME);
	cnss_pci_set_mhi_state(pci_priv, CNSS_MHI_POWER_OFF);
	if (!plat_priv->ramdump_info_v2.dump_data_valid)
		cnss_pci_set_mhi_state(pci_priv, CNSS_MHI_DEINIT);