]> asedeno.scripts.mit.edu Git - linux.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)
commita29564289973a519dae0d8936d2e4c414416e2e0
treef948dab1d4bdb553ea03f5da4a4baefbb7930a91
parentcb29529ea0030e60ef1bbbf8399a43d397a51526
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