kernel_optimize_test/drivers/pnp
Bjorn Helgaas e9fe9e1881 pnpacpi: fix IRQ flag decoding
When decoding IRQ trigger mode and polarity, it is not enough to mask by
IORESOURCE_BITS because there are now additional bits defined.  For
example, if IORESOURCE_IRQ_SHAREABLE was set, we failed to set *triggering
and *polarity at all.

I can't point to a failure that this patch fixes, but
bugs in this area have caused problems when resuming after
suspend, for example:

    http://bugzilla.kernel.org/show_bug.cgi?id=6316
    http://bugzilla.kernel.org/show_bug.cgi?id=9487
    https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/152187

This is based on a patch by Tom Jaeger:
    http://bugzilla.kernel.org/show_bug.cgi?id=9487#c32

[rene.herman@keyaccess.nl: fix comment]
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-06-11 19:13:46 -04:00
..
isapnp Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2008-04-30 11:52:52 -07:00
pnpacpi pnpacpi: fix IRQ flag decoding 2008-06-11 19:13:46 -04:00
pnpbios PNP: fix printk format warnings 2008-05-01 08:04:00 -07:00
base.h pnp: add pnp_build_option() to the API 2008-05-14 19:11:13 -07:00
card.c PNP: add pnp_alloc_card() 2008-04-29 03:22:17 -04:00
core.c PNP: make pnp_resource_table private to PNP core 2008-04-29 03:22:27 -04:00
driver.c PNP: change pnp_add_id() to allocate its own pnp_id structures 2008-04-29 03:22:16 -04:00
interface.c PNP: set IRQ index in sysfs "set irq" interface 2008-05-13 08:02:24 -07:00
Kconfig Use menuconfig objects: PNP 2007-07-16 09:05:40 -07:00
Makefile PNP: use dev_info(), dev_err(), etc in core 2007-10-17 08:43:04 -07:00
manager.c PNP: add pnp_resource index for ISAPNP 2008-04-29 03:22:28 -04:00
quirks.c PNP: mark resources that conflict with PCI devices "disabled" 2008-06-02 15:59:06 -07:00
resource.c pnp: add pnp_build_option() to the API 2008-05-14 19:11:13 -07:00
support.c lib: create common ascii hex array 2008-05-14 19:11:14 -07:00
system.c PNP: skip UNSET MEM resources as well as DISABLED ones 2008-06-05 10:30:37 -07:00