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

Commit 674b1527 authored by Sujeev Dias's avatar Sujeev Dias
Browse files

mhi: cntrl: qcom: clear bus master enable (BME) bit before saving cfg space



During PCIe resume, we restore saved PCIe configure space then
restore MSI capabilities. Device expects BME bit to be set only
after MSI capability registers are configured. To avoid setting
BME bit before restoring MSI clear BME bit before saving
configuration space.

CRs-Fixed: 2359707
Change-Id: I21c0cd99bb90fd4a61b37d024b6e6c9131bd0c55
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent cf071408
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -490,6 +490,7 @@ int mhi_arch_link_off(struct mhi_controller *mhi_cntrl, bool graceful)
	MHI_LOG("Entered\n");

	if (graceful) {
		pci_clear_master(pci_dev);
		ret = pci_save_state(mhi_dev->pci_dev);
		if (ret) {
			MHI_ERR("Failed with pci_save_state, ret:%d\n", ret);