PCI: add more checking to ICH region quirks
commit1fed17a3f1736f5396a951dd01ebd58adf43208f
authorJiri Slaby <jslaby@suse.cz>
Mon, 28 Feb 2011 09:45:09 +0000 (28 10:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:45:49 +0000 (21 12:45 -0700)
tree29afdb20454f03388064822f5bff6e051f5b5159
parentea5b3ecf8f709833067b392afc0a40cc510bb668
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