linux/drivers/pci/controller/dwc
Bjorn Helgaas 7dd3876205 PCI: kirin: Add dev struct for of_device_get_match_data()
Bean reported that a622435fbe ("PCI: kirin: Prefer
of_device_get_match_data()") broke kirin_pcie_probe() because it assumed
match data of 0 was a failure when in fact, it meant the match data was
"(void *)PCIE_KIRIN_INTERNAL_PHY".

Therefore, probing of "hisilicon,kirin960-pcie" devices failed with -EINVAL
and an "OF data missing" message.

Add a struct kirin_pcie_data to encode the PHY type.  Then the result of
of_device_get_match_data() should always be a non-NULL pointer to a struct
kirin_pcie_data that contains the PHY type.

Fixes: a622435fbe ("PCI: kirin: Prefer of_device_get_match_data()")
Link: https://lore.kernel.org/r/20220202162659.GA12603@bhelgaas
Link: https://lore.kernel.org/r/20220201215941.1203155-1-huobean@gmail.com
Reported-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2022-02-04 15:14:26 -06:00
..
Kconfig Merge branch 'remotes/lorenzo/pci/qcom' 2021-11-05 11:28:52 -05:00
Makefile PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver 2021-10-11 15:34:02 -05:00
pci-dra7xx.c bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
pci-exynos.c pci-v5.17-changes 2022-01-16 08:08:11 +02:00
pci-imx6.c PCI: imx: Add the imx8mm pcie support 2021-12-26 12:13:32 +00:00
pci-keystone.c Merge branch 'pci/driver-cleanup' 2022-01-13 09:57:53 -06:00
pci-layerscape-ep.c PCI: layerscape: Correct syntax by changing comma to semicolon 2021-03-22 17:24:19 +00:00
pci-layerscape.c PCI: layerscape: Change to use the DWC common link-up check function 2022-01-05 15:23:15 +00:00
pci-meson.c PCI: dwc: Remove unnecessary wrappers around dw_pcie_host_init() 2020-11-19 10:51:41 +00:00
pcie-al.c PCI: al: Remove useless dw_pcie_ops 2021-02-24 11:09:50 -06:00
pcie-armada8k.c PCI: dwc: Move dw_pcie_setup_rc() to DWC common code 2020-11-19 10:51:41 +00:00
pcie-artpec6.c PCI: artpec6: Prefer of_device_get_match_data() 2022-01-03 15:00:55 -06:00
pcie-designware-ep.c PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver 2021-10-11 15:34:02 -05:00
pcie-designware-host.c PCI: dwc: Perform host_init() before registering msi 2021-10-12 13:46:02 +01:00
pcie-designware-plat.c PCI: designware-plat: Prefer of_device_get_match_data() 2022-01-03 15:01:09 -06:00
pcie-designware.c PCI: dwc: Do not remap invalid res 2021-12-02 09:41:43 +00:00
pcie-designware.h PCI: dwc: Move iATU detection earlier 2021-04-29 17:05:59 +01:00
pcie-dw-rockchip.c PCI: rockchip-dwc: Add Rockchip RK356X host controller driver 2021-08-31 14:58:20 -05:00
pcie-fu740.c PCI: fu740: Add SiFive FU740 PCIe host controller driver 2021-05-04 14:58:22 +01:00
pcie-hisi.c PCI: hisi: Avoid invalid address space conversions 2022-01-03 15:05:28 -06:00
pcie-histb.c PCI: histb: Drop error data fabrication when config read fails 2021-11-18 13:40:29 -06:00
pcie-intel-gw.c PCI: intel-gw: Rename intel_pcie_port to intel_pcie 2022-01-03 15:01:43 -06:00
pcie-keembay.c PCI: keembay: Add support for Intel Keem Bay 2021-08-20 13:47:05 +01:00
pcie-kirin.c PCI: kirin: Add dev struct for of_device_get_match_data() 2022-02-04 15:14:26 -06:00
pcie-qcom-ep.c pci-v5.17-changes 2022-01-16 08:08:11 +02:00
pcie-qcom.c PCI: qcom: Use __be16 type to store return value from cpu_to_be16() 2021-12-06 10:29:43 +00:00
pcie-spear13xx.c PCI: spear13xx: Avoid invalid address space conversions 2022-01-03 15:05:28 -06:00
pcie-tegra194-acpi.c PCI: tegra194: Fix MCFG quirk build regressions 2021-06-18 10:32:34 -05:00
pcie-tegra194.c PCI: tegra194: Rename tegra_pcie_dw to tegra194_pcie 2022-01-03 15:05:28 -06:00
pcie-uniphier-ep.c PCI: dwc: Move "dbi", "dbi2", and "addr_space" resource setup into common code 2020-11-19 10:51:40 +00:00
pcie-uniphier.c PCI: uniphier: Rename uniphier_pcie_priv to uniphier_pcie 2022-01-03 15:05:28 -06:00
pcie-visconti.c PCI: visconti: Remove surplus dev_err() when using platform_get_irq_byname() 2021-10-07 16:03:57 +01:00