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

Commit c18d8cdb authored by Rama Krishna Phani A's avatar Rama Krishna Phani A Committed by Siva Kumar Akkireddi
Browse files

msm: ep_pcie: Send linkup notification only once



Link up notification will be sent to client as part
of enumeration and when BME is set by host. Avoid
sending link up callback to client if already sent.

Change-Id: Ic1bb156fc4c3619bcd466bfacaf83eeb49057e0f
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
Signed-off-by: default avatarSiva Kumar Akkireddi <sivaa@codeaurora.org>
parent f7979ae4
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1247,6 +1247,11 @@ static void ep_pcie_enumeration_complete(struct ep_pcie_dev_t *dev)


	spin_lock_irqsave(&dev->isr_lock, irqsave_flags);
	spin_lock_irqsave(&dev->isr_lock, irqsave_flags);


	if (dev->enumerated) {
		EP_PCIE_DBG(dev, "PCIe V%d: Enumeration already done\n",
				dev->rev);
		goto done;
	}
	dev->enumerated = true;
	dev->enumerated = true;
	dev->link_status = EP_PCIE_LINK_ENABLED;
	dev->link_status = EP_PCIE_LINK_ENABLED;


@@ -1280,6 +1285,7 @@ static void ep_pcie_enumeration_complete(struct ep_pcie_dev_t *dev)
			"PCIe V%d: do not notify client about linkup.\n",
			"PCIe V%d: do not notify client about linkup.\n",
			dev->rev);
			dev->rev);


done:
	spin_unlock_irqrestore(&dev->isr_lock, irqsave_flags);
	spin_unlock_irqrestore(&dev->isr_lock, irqsave_flags);
}
}