[PATCH 0/2] PCI: dwc: Handle return value from endpoint .init/.preinit callbacks
Marek Vasut
marek.vasut+renesas at mailbox.org
Mon Jul 27 18:24:23 PDT 2026
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" <kwilczynski at kernel.org>
Cc: Anand Moon <linux.amoon at gmail.com>
Cc: Bjorn Helgaas <bhelgaas at google.com>
Cc: Frank Li <Frank.Li at nxp.com>
Cc: Geert Uytterhoeven <geert+renesas at glider.be>
Cc: Heiko Stuebner <heiko at sntech.de>
Cc: Jesper Nilsson <jesper.nilsson at axis.com>
Cc: Jingoo Han <jingoohan1 at gmail.com>
Cc: Koichiro Den <den at valinux.co.jp>
Cc: Lorenzo Pieralisi <lpieralisi at kernel.org>
Cc: Magnus Damm <magnus.damm at gmail.com>
Cc: Manivannan Sadhasivam <mani at kernel.org>
Cc: Minghuan Lian <minghuan.Lian at nxp.com>
Cc: Mingkai Hu <mingkai.hu at nxp.com>
Cc: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>
Cc: Niklas Cassel <cassel at kernel.org>
Cc: Qianfeng Rong <rongqianfeng at vivo.com>
Cc: Qiang Yu <qiang.yu at oss.qualcomm.com>
Cc: Rob Herring <robh at kernel.org>
Cc: Roy Zang <roy.zang at nxp.com>
Cc: Shawn Lin <shawn.lin at rock-chips.com>
Cc: Siddharth Vadapalli <s-vadapalli at ti.com>
Cc: Srikanth Thokala <srikanth.thokala at intel.com>
Cc: Vignesh Raghavendra <vigneshr at ti.com>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh at renesas.com>
Cc: Yuho Choi <dbgh9129 at gmail.com>
Cc: imx at lists.linux.dev
Cc: linux-arm-kernel at lists.infradead.org
Cc: linux-kernel at vger.kernel.org
Cc: linux-omap at vger.kernel.org
Cc: linux-pci at vger.kernel.org
Cc: linux-renesas-soc at vger.kernel.org
Cc: linux-rockchip at lists.infradead.org
--
2.53.0
More information about the Linux-rockchip
mailing list