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

Commit 9ab39a99 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents cd9b565e a6080012
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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"))