diff options
| author | Frank Li <[email protected]> | 2023-07-20 13:58:33 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2023-08-24 08:06:59 +0000 |
| commit | d28c0d84ca40e8cbc5c9f4e94f4ec78469d6c07b (patch) | |
| tree | 88a20007bc76f50e98924f44d787eb90a1ef1e12 /drivers/pci/controller/dwc | |
| parent | Linux 6.5-rc1 (diff) | |
| download | kernel-d28c0d84ca40e8cbc5c9f4e94f4ec78469d6c07b.tar.gz kernel-d28c0d84ca40e8cbc5c9f4e94f4ec78469d6c07b.zip | |
PCI: layerscape: Add support for link-down notification
Add support to pass link-down notification to the endpoint function
driver so that it can process the LINK_DOWN event.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Manivannan Sadhasivam <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
| -rw-r--r-- | drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c b/drivers/pci/controller/dwc/pci-layerscape-ep.c index de4c1758a6c3..e0969ff2ddf7 100644 --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c @@ -89,6 +89,7 @@ static irqreturn_t ls_pcie_ep_event_handler(int irq, void *dev_id) dev_dbg(pci->dev, "Link up\n"); } else if (val & PEX_PF0_PME_MES_DR_LDD) { dev_dbg(pci->dev, "Link down\n"); + pci_epc_linkdown(pci->ep.epc); } else if (val & PEX_PF0_PME_MES_DR_HRD) { dev_dbg(pci->dev, "Hot reset\n"); } |
