mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
cnss2: return -EBUSY in cnss_pci_link_down if link already down
Add code to return -EBUSY in cnss_pci_link_down api if link down indication is already received. Change-Id: Ifbc33717b1129728e167d003298bf734213dd060 Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
This commit is contained in:
parent
1ca91eb817
commit
a6080012a0
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