]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: add more checking to ICH region quirks
authorJiri Slaby <jslaby@suse.cz>
Mon, 28 Feb 2011 09:45:09 +0000 (10:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Mar 2011 20:03:58 +0000 (13:03 -0700)
commit679b8fe6cc6ee420931d19fa63ccc066af1e4c88
tree6b332eb791c739dc43fbd267bd2356d8c5bf15c5
parentf9a0641774ddd24d99b97975e33bc323e33ecd25
PCI: add more checking to ICH region quirks

commit cdb9755849fbaf2bb9c0a009ba5baa817a0f152d upstream.

Per ICH4 and ICH6 specs, ACPI and GPIO regions are valid iff ACPI_EN
and GPIO_EN bits are set to 1. Add checks for these bits into the
quirks prior to the region creation.

While at it, name the constants by macros.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/quirks.c