]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:47:05 +0000 (12:47 -0400)
commit188d8b123a9b6e37e2b632c0d7decd83d086e9db
treec4afe94dba3097299a61b31eaf6ae149099b2b3c
parent70bf43b57e081da4ddbd28363f68239396857bff
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/pci/quirks.c