]> git.baikalelectronics.ru Git - kernel.git/commit
sparc,leon: fix GRPCI2 device0 PCI config space access
authorDaniel Hellstrom <daniel@gaisler.com>
Thu, 28 Feb 2013 04:31:55 +0000 (04:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Mar 2013 06:36:09 +0000 (22:36 -0800)
commita80b719192c998df6ea2e3828c7cfaafa938965e
treef948dab1d4bdb553ea03f5da4a4baefbb7930a91
parent321dcd295292448a6d68e1f81bcc54dce3c1a3ea
sparc,leon: fix GRPCI2 device0 PCI config space access

bus=0 slot=0 (device0) was used internally by the PCI host driver
to access the PCI host controller itself, however that had the
effect that PCI device0 was never accessible, which is wrong
when the motherboard has connected PCI AD16 signal to a slot.
A special case for accessing the PCI host controller itself is
added with this patch, by setting bus to TGT.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/leon_pci_grpci2.c