[PATCH 0/2] PCI: dwc: Handle return value from endpoint .init/.preinit callbacks
Marek Vasut <[email protected]> Tue, 28 Jul 2026 03:24:23 +0200
| Newsgroups | org.kernel.vger.linux-omap,dev.linux.lists.imx,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-rockchip,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci,org.kernel.vger.linux-renesas-soc |
|---|---|
| Message-ID | <[email protected]> |
This is a trivial preparatory change which allows checking the struct dw_pcie_ep_ops .init/.pre_init return values. Currently only the Layerscape PCIe controller benefits from this as its ls_pcie_ep_init() may fail in dw_pcie_ep_get_func_from_ep() call, but the Renesas R-Car Gen5 will benefit from this next. Since this affects many controller glues and has a huge CC list, I am sending this separately from the R-Car Gen5 patches. Marek Vasut (2): PCI: dwc: Handle return value from endpoint .init callback PCI: dwc: Handle return value from endpoint .pre_init callback drivers/pci/controller/dwc/pci-dra7xx.c | 4 +++- drivers/pci/controller/dwc/pci-keystone.c | 4 +++- drivers/pci/controller/dwc/pci-layerscape-ep.c | 6 ++++-- drivers/pci/controller/dwc/pcie-artpec6.c | 4 +++- drivers/pci/controller/dwc/pcie-designware-ep.c | 14 ++++++++++---- drivers/pci/controller/dwc/pcie-designware.h | 4 ++-- drivers/pci/controller/dwc/pcie-dw-rockchip.c | 4 +++- drivers/pci/controller/dwc/pcie-keembay.c | 4 +++- drivers/pci/controller/dwc/pcie-rcar-gen4.c | 6 ++++-- 9 files changed, 35 insertions(+), 15 deletions(-) --- Cc: "Krzysztof WilczyĆski" <[email protected]> Cc: Anand Moon <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Frank Li <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Heiko Stuebner <[email protected]> Cc: Jesper Nilsson <[email protected]> Cc: Jingoo Han <[email protected]> Cc: Koichiro Den <[email protected]> Cc: Lorenzo Pieralisi <[email protected]> Cc: Magnus Damm <[email protected]> Cc: Manivannan Sadhasivam <[email protected]> Cc: Minghuan Lian <[email protected]> Cc: Mingkai Hu <[email protected]> Cc: Nicolas Frattaroli <[email protected]> Cc: Niklas Cassel <[email protected]> Cc: Qianfeng Rong <[email protected]> Cc: Qiang Yu <[email protected]> Cc: Rob Herring <[email protected]> Cc: Roy Zang <[email protected]> Cc: Shawn Lin <[email protected]> Cc: Siddharth Vadapalli <[email protected]> Cc: Srikanth Thokala <[email protected]> Cc: Vignesh Raghavendra <[email protected]> Cc: Yoshihiro Shimoda <[email protected]> Cc: Yuho Choi <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] -- 2.53.0