]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx6: Propagate .host_init() errors to caller
authorRichard Zhu <hongxing.zhu@nxp.com>
Thu, 14 Jul 2022 07:30:59 +0000 (15:30 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 1 Aug 2022 20:33:32 +0000 (15:33 -0500)
commit4d7acfc9c20fcbd26e998af674935ecc61f02760
tree57a70a3abc4c068ebfb49bd1de972d99e786e558
parentc31c26f5642f93cc4edadc63dd8d71fc0289d4d3
PCI: imx6: Propagate .host_init() errors to caller

Since dw_pcie_host_init() checks for errors from ops->host_init(),
check for errors when enabling power regulators and clocks and return them.

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/1657783869-19194-8-git-send-email-hongxing.zhu@nxp.com
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/controller/dwc/pci-imx6.c