Skip to content

Commit d28c0d8

Browse files
nxpfrankliLorenzo Pieralisi
authored andcommitted
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/20230720135834.1977616-1-Frank.Li@nxp.com Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org> Acked-by: Manivannan Sadhasivam <mani@kernel.org>
1 parent 06c2afb commit d28c0d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/controller/dwc/pci-layerscape-ep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ static irqreturn_t ls_pcie_ep_event_handler(int irq, void *dev_id)
8989
dev_dbg(pci->dev, "Link up\n");
9090
} else if (val & PEX_PF0_PME_MES_DR_LDD) {
9191
dev_dbg(pci->dev, "Link down\n");
92+
pci_epc_linkdown(pci->ep.epc);
9293
} else if (val & PEX_PF0_PME_MES_DR_HRD) {
9394
dev_dbg(pci->dev, "Hot reset\n");
9495
}

0 commit comments

Comments
 (0)