Skip to content

Commit b8747e1

Browse files
Mani-Sadhasivambjorn-helgaas
authored andcommitted
PCI: layerscape-ep: Use the generic dw_pcie_ep_linkdown() API to handle Link Down event
Now that dw_pcie_ep_linkdown() is available, use it. This also handles the reinitialization of DWC non-sticky registers in addition to sending the notification to EPF drivers. Closes: https://lore.kernel.org/linux-pci/20240528195539.GA458945@bhelgaas Link: https://lore.kernel.org/linux-pci/[email protected] Reported-by: Bjorn Helgaas <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Frank Li <[email protected]> Reviewed-by: Niklas Cassel <[email protected]>
1 parent 5746211 commit b8747e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static irqreturn_t ls_pcie_ep_event_handler(int irq, void *dev_id)
104104
dev_dbg(pci->dev, "Link up\n");
105105
} else if (val & PEX_PF0_PME_MES_DR_LDD) {
106106
dev_dbg(pci->dev, "Link down\n");
107-
pci_epc_linkdown(pci->ep.epc);
107+
dw_pcie_ep_linkdown(&pci->ep);
108108
} else if (val & PEX_PF0_PME_MES_DR_HRD) {
109109
dev_dbg(pci->dev, "Hot reset\n");
110110
}

0 commit comments

Comments
 (0)