pcmcia: do not autoadd root PCI bus resources
authorDominik Brodowski <linux@dominikbrodowski.net>
Mon, 29 Mar 2010 19:40:35 +0000 (21:40 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 10 May 2010 08:23:19 +0000 (10:23 +0200)
commitcf26e8dc419424786575990aa133e76f5fb38657
treef6913c925d7d3c050cd9c01516d017fd0b5ed277
parentb19a7275dec4b470ea9abaae6129d21a0d75ab2f
pcmcia: do not autoadd root PCI bus resources

On the PCI root bus on the x86 architecture, the risk of hitting
some strange system devices is too high: If a driver isn't loaded,
the resources are not claimed; even if a driver is loaded, it
may not request all resources or even the wrong one. We can neither
trust the rest of the kernel nor ACPI/PNP and CRS parsing to get it
right.

Therefore, explicitly spell out what safeguards we provide, and add
a safeguard to only use resources which are set up exclusively for
the secondary PCI bus (non-subtractive mode): the risk of hitting
system devices is quite low, as they usually aren't connected to
the secondary PCI bus.

CC: Jesse Barnes <jbarnes@virtuousgeek.org>
CC: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/rsrc_nonstatic.c