linux-bl808/drivers/pci/controller/dwc
Kishon Vijay Abraham I 421db1ab28 PCI: dwc: Fix dw_pcie_ep_find_capability() to return correct capability offset
commit beb4641a78 ("PCI: dwc: Add MSI-X callbacks handler") while
adding MSI-X callback handler, introduced dw_pcie_ep_find_capability()
and __dw_pcie_ep_find_next_cap() for finding the MSI and MSIX capability.

However if MSI or MSIX capability is the last capability (i.e there are
no additional items in the capabilities list and the Next Capability
Pointer is set to '0'), __dw_pcie_ep_find_next_cap will return '0'
even though MSI or MSIX capability may be present because of
incorrect ordering of the "next_cap_ptr" check. Fix it.

Fixes: beb4641a78 ("PCI: dwc: Add MSI-X callbacks handler")
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2019-04-16 15:10:36 +01:00
..
Kconfig PCI: keystone: Add support for PCIe RC in AM654x Platforms 2019-04-15 13:24:02 +01:00
Makefile PCI: layerscape: Add EP mode support 2019-02-21 10:40:55 +00:00
pci-dra7xx.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pci-exynos.c
pci-imx6.c pci-v5.1-changes 2019-03-09 14:57:08 -08:00
pci-keystone.c PCI: keystone: Add support to set the max link speed from DT 2019-04-15 13:24:02 +01:00
pci-layerscape-ep.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pci-layerscape.c pci-v4.21-changes 2019-01-05 17:57:34 -08:00
pci-meson.c PCI: amlogic: Fix build failure due to missing gpio header 2019-01-08 09:01:44 -06:00
pcie-armada8k.c Revert "PCI: armada8k: Add support for gpio controlled reset signal" 2019-01-31 15:07:29 -06:00
pcie-artpec6.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pcie-designware-ep.c PCI: dwc: Fix dw_pcie_ep_find_capability() to return correct capability offset 2019-04-16 15:10:36 +01:00
pcie-designware-host.c PCI: dwc: Enable iATU unroll for endpoint too 2019-04-15 13:24:01 +01:00
pcie-designware-plat.c PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pcie-designware.c PCI: dwc: Fix ATU identification for designware version >= 4.80 2019-04-15 13:24:01 +01:00
pcie-designware.h PCI: dwc: Add const qualifier to struct dw_pcie_ep_ops 2019-04-15 13:24:02 +01:00
pcie-hisi.c
pcie-histb.c
pcie-kirin.c
pcie-qcom.c PCI: qcom: Don't deassert reset GPIO during probe 2019-02-28 09:46:10 +00:00
pcie-spear13xx.c
pcie-uniphier.c