android_kernel_google_msm/drivers/eisa
Yinghai Lu 91777f102b EISA/PCI: Fix bus res reference
commit 2cfda637e2 upstream.

Matthew found that 3.8.3 is having problems with an old (ancient)
PCI-to-EISA bridge, the Intel 82375. It worked with the 3.2 kernel.
He identified the 82375, but doesn't assign the struct resource *res
pointer inside the struct eisa_root_device, and panics.

pci_eisa_init() was using bus->resource[] directly instead of
pci_bus_resource_n().  The bus->resource[] array is a PCI-internal
implementation detail, and after commit 45ca9e97 (PCI: add helpers for
building PCI bus resource lists) and commit 0efd5aab (PCI: add struct
pci_host_bridge_window with CPU/bus address offset), bus->resource[] is not
used for PCI root buses any more.

The 82375 is a subtractive-decode PCI device, so handle it the same
way we handle PCI-PCI bridges in subtractive-decode mode in
pci_read_bridge_bases().

[bhelgaas: changelog]
Reported-by: Matthew Whitehead <mwhitehe@redhat.com>
Tested-by: Matthew Whitehead <mwhitehe@redhat.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-04-12 09:38:44 -07:00
..
.gitignore
Kconfig
Makefile
eisa-bus.c eisa: fix coding style for eisa bus code 2010-03-06 11:26:32 -08:00
eisa.ids eisa.ids: add Network Peripherals FDDI boards 2009-06-16 19:47:52 -07:00
pci_eisa.c EISA/PCI: Fix bus res reference 2013-04-12 09:38:44 -07:00
virtual_root.c