]> 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)
commit0039ad2b08c28298889d107281177a8b3cb28608
treef948dab1d4bdb553ea03f5da4a4baefbb7930a91
parentd7f9f376f2703164beb07e1f10f33f1dac0c3c7a
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