PCI: add more checking to ICH region quirks
commitcdb9755849fbaf2bb9c0a009ba5baa817a0f152d
authorJiri Slaby <jslaby@suse.cz>
Mon, 28 Feb 2011 09:45:09 +0000 (28 10:45 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 4 Mar 2011 18:41:32 +0000 (4 10:41 -0800)
tree1bf3e01326a198e0f50e4a8de41866fb416a6987
parent457d9d088b026e26dbab98cad9d299c1faf4c343
PCI: add more checking to ICH region quirks

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>
drivers/pci/quirks.c