Skip to contentSkip to conversation

PCI: dw-rockchip: Use pci_epc_init_notify() directly

PATCH Applied Niklas Cassel 2 participants 2 messages Jun 22, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: dw-rockchip: Use pci_epc_init_notify() directly

Commit 9eba2f70362f ("PCI: dwc: ep: Remove dw_pcie_ep_init_notify() wrapper") removed the dw_pcie_ep_init_notify() wrapper, and changed the DWC glue drivers to instead use pci_epc_init_notify() directly.

The endpoint support for the dw-rockchip had not been merged at that point in time, so commit 9eba2f70362f ("PCI: dwc: ep: Remove dw_pcie_ep_init_notify() wrapper") did not update dw-rockchip.

Do the same change for dw-rockchip, so that the driver will not try to use a function that has now been removed.

---
 drivers/pci/controller/dwc/pcie-dw-rockchip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/dwc/pcie-dw-rockchip.c +1 -1
index 0a0fdfc66b91..1170e1107508 100644
@@ -488,7 +488,7 @@ static int rockchip_pcie_configure_ep(struct platform_device *pdev,
 		return ret;
 	}
 
-	dw_pcie_ep_init_notify(&rockchip->pci.ep);
+	pci_epc_init_notify(rockchip->pci.ep.epc);
 
 	/* unmask DLL up/down indicator and hot reset/link-down reset */
 	rockchip_pcie_writel_apb(rockchip, 0x60000, PCIE_CLIENT_INTR_MASK_MISC);
Signature · 1 line
2.45.2
#1 lore raw

Hello,

Quoted 10 lines

Commit 9eba2f70362f ("PCI: dwc: ep: Remove dw_pcie_ep_init_notify() wrapper") removed the dw_pcie_ep_init_notify() wrapper, and changed the DWC glue drivers to instead use pci_epc_init_notify() directly.

The endpoint support for the dw-rockchip had not been merged at that point in time, so commit 9eba2f70362f ("PCI: dwc: ep: Remove dw_pcie_ep_init_notify() wrapper") did not update dw-rockchip.

Do the same change for dw-rockchip, so that the driver will not try to use a function that has now been removed.

Applied to controller/rockchip, thank you!

[1/1] PCI: dw-rockchip: Use pci_epc_init_notify() directly

      https://git.kernel.org/pci/pci/c/246afbe0f6fc

	Krzysztof