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

Commit fbc35a7a authored by Prashanth Bhatta's avatar Prashanth Bhatta Committed by Gerrit - the friendly Code Review server
Browse files

PCI: Do not retry for config space restore



On MSM PCI during runtime resume, config space restore takes 10
unsuccessful iterations with a mdelay of 1 ms for each config
register which causes the pm_runtime_work to take a longer time
to execute. This long busy wait causes issues for other worker
items queued to same pool where pm_runtime_work is executing.

Change-Id: I75b8a6677d21dd7b7f16a3dbae7a49dd796b6586
Signed-off-by: default avatarPrashanth Bhatta <bhattap@codeaurora.org>
parent 1838c9d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1060,7 +1060,7 @@ static void pci_restore_config_space(struct pci_dev *pdev)
	if (pdev->hdr_type == PCI_HEADER_TYPE_NORMAL) {
		pci_restore_config_space_range(pdev, 10, 15, 0);
		/* Restore BARs before the command register. */
		pci_restore_config_space_range(pdev, 4, 9, 10);
		pci_restore_config_space_range(pdev, 4, 9, 0);
		pci_restore_config_space_range(pdev, 0, 3, 0);
	} else {
		pci_restore_config_space_range(pdev, 0, 15, 0);