Merge "cnss2: Add code to do PCIe L2 suspend/resume during link recovery"

This commit is contained in:
qctecmdr 2021-01-15 02:01:46 -08:00 • committed by Gerrit - the friendly Code Review server
commit 842bfd3a01

View file

@ -894,6 +894,8 @@ int cnss_pci_recover_link_down(struct cnss_pci_data *pci_priv)
*/
msleep(WAKE_EVENT_TIMEOUT);
/* Always do PCIe L2 suspend/resume during link down recovery */
pci_priv->drv_connected_last = 0;
ret = cnss_suspend_pci_link(pci_priv);
if (ret)
cnss_pr_err("Failed to suspend PCI link, err = %d\n", ret);