]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Maple U3 HT - reject inappropriate config space access
authorNathan Lynch <ntl@pobox.com>
Thu, 21 Sep 2006 19:25:34 +0000 (14:25 -0500)
committerPaul Mackerras <paulus@samba.org>
Fri, 22 Sep 2006 05:19:58 +0000 (15:19 +1000)
commit9d30e09903bfee15df6354347b29cbb71d1f23bd
tree421df8cc60c8570e89b15a74cd67b177ca64778c
parentdc0fce8804238af13f8cda6e4c79bdaa3e7aeb30
[POWERPC] Maple U3 HT - reject inappropriate config space access

When there is a PCI-X mode 2 capable device behind the HT<->PCI-X
bridge, the pci core decides that the device has the extended 4K
config space, even though the bus is not operating in mode 2.  This is
because the u3_ht pci ops silently accept offsets greater than 255 but
use only the 8 least significant bits, which means reading at offset
0x100 gets the data at offset 0x0, and causes confusion for lspci.

Reject accesses to configuration space offsets greater than 255.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/maple/pci.c