Skip to content

Commit 8f05cd3

Browse files
Mani-Sadhasivambjorn-helgaas
authored andcommitted
PCI: qcom-ep: Add support for BME notification
Add support to pass BME (Bus Master Enable) notification to Endpoint function driver so that the BME event can be processed by the function. Link: https://lore.kernel.org/r/20230602114756.36586-8-manivannan.sadhasivam@linaro.org Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Kishon Vijay Abraham I <kishon@kernel.org> Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
1 parent c47c74b commit 8f05cd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/controller/dwc/pcie-qcom-ep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ static irqreturn_t qcom_pcie_ep_global_irq_thread(int irq, void *data)
573573
} else if (FIELD_GET(PARF_INT_ALL_BME, status)) {
574574
dev_dbg(dev, "Received BME event. Link is enabled!\n");
575575
pcie_ep->link_status = QCOM_PCIE_EP_LINK_ENABLED;
576+
pci_epc_bme_notify(pci->ep.epc);
576577
} else if (FIELD_GET(PARF_INT_ALL_PM_TURNOFF, status)) {
577578
dev_dbg(dev, "Received PM Turn-off event! Entering L23\n");
578579
val = readl_relaxed(pcie_ep->parf + PARF_PM_CTRL);

0 commit comments

Comments
 (0)