diff options
| author | Manivannan Sadhasivam <[email protected]> | 2023-06-02 11:47:53 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2023-06-23 20:05:35 +0000 |
| commit | c47c74b7217a3a142d6c7f0371d8e0240acb21a0 (patch) | |
| tree | e7f731cc3e980f1894f25679a6b4adbf930f86e2 /drivers/pci/controller/dwc/pcie-qcom-ep.c | |
| parent | PCI: endpoint: Add BME notifier support (diff) | |
| download | kernel-c47c74b7217a3a142d6c7f0371d8e0240acb21a0.tar.gz kernel-c47c74b7217a3a142d6c7f0371d8e0240acb21a0.zip | |
PCI: qcom-ep: Add support for Link down notification
Add support to pass Link down notification to Endpoint function driver so
that the LINK_DOWN event can be processed by the function.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Kishon Vijay Abraham I <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-ep.c')
| -rw-r--r-- | drivers/pci/controller/dwc/pcie-qcom-ep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c index 19b32839ea26..4ce01ff7527c 100644 --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c @@ -569,6 +569,7 @@ static irqreturn_t qcom_pcie_ep_global_irq_thread(int irq, void *data) if (FIELD_GET(PARF_INT_ALL_LINK_DOWN, status)) { dev_dbg(dev, "Received Linkdown event\n"); pcie_ep->link_status = QCOM_PCIE_EP_LINK_DOWN; + pci_epc_linkdown(pci->ep.epc); } else if (FIELD_GET(PARF_INT_ALL_BME, status)) { dev_dbg(dev, "Received BME event. Link is enabled!\n"); pcie_ep->link_status = QCOM_PCIE_EP_LINK_ENABLED; |
