]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: layerscape: Ignore PCIe controllers in Endpoint mode
authorMinghuan Lian <Minghuan.Lian@freescale.com>
Fri, 16 Oct 2015 07:19:16 +0000 (15:19 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 2 Nov 2015 21:38:38 +0000 (15:38 -0600)
commit7af4ce3571931bdc043c4220402262f817b9b968
tree8e1a7bd1ffc4c1b10d6c8f472c6015eb1901c3a8
parent72f71afb86bcdbf9dc2261214bf346fad4e2efb0
PCI: layerscape: Ignore PCIe controllers in Endpoint mode

Layerscape PCIe controller supports root complex (RC) and endpoint (EP)
modes, which can be set by RCW.

If not in RC mode, return -ENODEV without claiming the controller.

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-layerscape.c