]> 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 19:50:27 +0000 (12:50 -0700)
commit3d5a68d981b63a5c0da644d0d3f778a61c10ec63
tree55549767658d50b7e90c073df0ddaacb3ea3f198
parentc54ac9788df19f413b4d4d8c3819ff8f17192613
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