Skip to content

Commit 5746211

Browse files
Mani-Sadhasivambjorn-helgaas
authored andcommitted
PCI: qcom-ep: Use the generic dw_pcie_ep_linkdown() API to handle Link Down event
Now that the generic dw_pcie_ep_linkdown() API is available, use it. This also handles the reinitialization of DWC non-sticky registers in addition to sending the notification to EPF drivers. Link: https://lore.kernel.org/linux-pci/20240430-pci-epf-rework-v4-9-22832d0d456f@linaro.org Tested-by: Niklas Cassel <cassel@kernel.org> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Niklas Cassel <cassel@kernel.org>
1 parent 245b9eb commit 5746211

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ static irqreturn_t qcom_pcie_ep_global_irq_thread(int irq, void *data)
641641
if (FIELD_GET(PARF_INT_ALL_LINK_DOWN, status)) {
642642
dev_dbg(dev, "Received Linkdown event\n");
643643
pcie_ep->link_status = QCOM_PCIE_EP_LINK_DOWN;
644-
pci_epc_linkdown(pci->ep.epc);
644+
dw_pcie_ep_linkdown(&pci->ep);
645645
} else if (FIELD_GET(PARF_INT_ALL_BME, status)) {
646646
dev_dbg(dev, "Received Bus Master Enable event\n");
647647
pcie_ep->link_status = QCOM_PCIE_EP_LINK_ENABLED;

0 commit comments

Comments
 (0)