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

Commit 480942b4 authored by Maya Erez's avatar Maya Erez
Browse files

msm_11ad: remove msm PCIe shadow control



MSM PCIe saves and restores PCI config space using the framework,
hence PCIe shadow is no longer required.

Change-Id: If0c1832bdf0dc7c4b66b4c2553f5522b54b8bb52
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent 906ec760
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -569,8 +569,6 @@ static int msm_11ad_suspend_power_off(void *handle)

	pcidev = ctx->pcidev;

	msm_pcie_shadow_control(ctx->pcidev, 0);

	rc = pci_save_state(pcidev);
	if (rc) {
		dev_err(ctx->dev, "pci_save_state failed :%d\n", rc);
@@ -609,8 +607,6 @@ static int ops_suspend(void *handle, bool keep_device_power)

	pcidev = ctx->pcidev;

	msm_pcie_shadow_control(pcidev, 0);

	dev_dbg(ctx->dev, "disable device and save config\n");
	pci_disable_device(pcidev);
	pci_save_state(pcidev);
@@ -659,8 +655,6 @@ static int msm_11ad_resume_power_on(void *handle)
		pci_load_saved_state(ctx->pcidev, ctx->pristine_state);
	pci_restore_state(ctx->pcidev);

	msm_pcie_shadow_control(ctx->pcidev, 1);

	return 0;

err_disable_power:
@@ -704,8 +698,6 @@ static int ops_resume(void *handle, bool device_powered_on)
		goto out;
	}

	msm_pcie_shadow_control(pcidev, 1);

	dev_dbg(ctx->dev, "pci set master\n");
	pci_set_master(pcidev);