Merge "cnss2: return -EBUSY in cnss_pci_link_down if link already down"

This commit is contained in:
qctecmdr 2021-09-12 15:41:29 -07:00 • committed by Gerrit - the friendly Code Review server
commit 9ab39a992d

View file

@ -1325,6 +1325,11 @@ int cnss_pci_link_down(struct device *dev)
return -ENODEV;
}
if (pci_priv->pci_link_down_ind) {
cnss_pr_dbg("PCI link down recovery is already in progress\n");
return -EBUSY;
}
if (pci_priv->drv_connected_last &&
of_property_read_bool(plat_priv->plat_dev->dev.of_node,
"cnss-enable-self-recovery"))