android_kernel_motorola_sm6225/drivers/pnp
Ondrej Zary 3ae192080c [PATCH] Fix swsusp with PNP BIOS
swsusp is unable to suspend my machine (DTK FortisPro TOP-5A notebook) with
kernel 2.6.17.5 because it's unable to suspend PNP device 00:16 (mouse).

The problem is in PNP BIOS.  pnp_bus_suspend() calls pnp_stop_dev() for the
device if the device can be disabled according to pnp_can_disable().  The
problem is that pnpbios_disable_resources() returns -EPERM if the device is
not dynamic (!pnpbios_is_dynamic()) but insert_device() happily sets
PNP_DISABLE capability/flag even if the device is not dynamic.  So we try
to disable non-dynamic devices which will fail.  This patch prevents
insert_device() from setting PNP_DISABLE if the device is not dynamic and
fixes suspend on my system.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-31 13:28:41 -07:00
..
isapnp Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pnpacpi [PATCH] PNPACPI: support shareable interrupts 2006-07-03 15:26:58 -07:00
pnpbios [PATCH] Fix swsusp with PNP BIOS 2006-07-31 13:28:41 -07:00
base.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
card.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
core.c [PATCH] drivers/pnp/: cleanups 2005-11-07 07:54:09 -08:00
driver.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
interface.c [PATCH] 64bit resource: change pnp core to use resource_size_t 2006-06-27 09:24:00 -07:00
Kconfig [ACPI] delete CONFIG_ACPI_BUS 2005-08-24 12:11:34 -04:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
manager.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
quirks.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
resource.c [PATCH] irq-flags: misc drivers: Use the new IRQF_ constants 2006-07-02 13:58:50 -07:00
support.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
system.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00