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

Commit 6ae0b83e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss: Fix pcie link down recovery issue"

parents f1577fb7 d8eae434
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -80,10 +80,9 @@ static int cnss_set_pci_config_space(struct cnss_pci_data *pci_priv, bool save)
		} else if (pci_priv->saved_state) {
			pci_load_and_free_saved_state(pci_dev,
						      &pci_priv->saved_state);
		}

			pci_restore_state(pci_dev);
		}
	}

	return 0;
}
@@ -168,6 +167,9 @@ int cnss_resume_pci_link(struct cnss_pci_data *pci_priv)
	if (ret)
		goto out;

	if (pci_priv->pci_link_down_ind)
		pci_priv->pci_link_down_ind = false;

	return 0;
out:
	return ret;
@@ -300,6 +302,7 @@ static void cnss_pci_event_cb(struct msm_pcie_notify *notify)
		spin_unlock_irqrestore(&pci_link_down_lock, flags);

		cnss_pr_err("PCI link down, schedule recovery!\n");
		if (pci_dev->device == QCA6174_DEVICE_ID)
			disable_irq(pci_dev->irq);
		cnss_schedule_recovery(&pci_dev->dev, CNSS_REASON_LINK_DOWN);
		break;