mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "cnss2: return -EBUSY in cnss_pci_link_down if link already down"
This commit is contained in:
commit
9ab39a992d
1 changed files with 5 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue