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

Commit a8cbb6a8 authored by Vivek Pernamitta's avatar Vivek Pernamitta
Browse files

msm: pcie: Return EACCESS when link access is not allowed



Return EACCESS instead of EIO when link access is not
allowed at prevent l1, so client driver will procced
based on the return value.

Change-Id: Iee3b9a65609db1272be550089948d07527c7e134
Signed-off-by: default avatarVivek Pernamitta <vpernami@codeaurora.org>
parent f291b2fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6039,7 +6039,7 @@ int msm_pcie_prevent_l1(struct pci_dev *pci_dev)
			 "RC%d: PCIE Link is already disabled\n",
			 pcie_dev->rc_idx);
		mutex_unlock(&pcie_dev->setup_lock);
		return -EIO;
		return -EACCES;
	}

	if (pcie_dev->prevent_l1++) {