]> git.pld-linux.org Git - packages/kernel.git/blame - kernel-2.6-pnpbios.patch
- based on:
[packages/kernel.git] / kernel-2.6-pnpbios.patch
CommitLineData
3a75dfd3 1Finally, I debugged it today. The problem is in PNP BIOS. pnp_bus_suspend()
2calls pnp_stop_dev() for the device if the device can be disabled according
3to pnp_can_disable(). The problem is that pnpbios_disable_resources()
4returns -EPERM if the device is not dynamic (!pnpbios_is_dynamic()) but
5insert_device() happily sets PNP_DISABLE capability/flag even if the device
6is not dynamic. So we try to disable non-dynamic devices which will fail.
7This patch prevents insert_device() from setting PNP_DISABLE if the device is
8not dynamic and fixes suspend on my system.
9
10Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
11
12--- linux-2.6.17.orig/drivers/pnp/pnpbios/core.c 2006-08-15 18:12:15.129352250 +0200
13+++ linux-2.6.17/drivers/pnp/pnpbios/core.c 2006-08-15 18:12:36.366679500 +0200
14@@ -346,7 +346,7 @@
15 dev->flags = node->flags;
16 if (!(dev->flags & PNPBIOS_NO_CONFIG))
17 dev->capabilities |= PNP_CONFIGURABLE;
18- if (!(dev->flags & PNPBIOS_NO_DISABLE))
19+ if (!(dev->flags & PNPBIOS_NO_DISABLE) && pnpbios_is_dynamic(dev))
20 dev->capabilities |= PNP_DISABLE;
21 dev->capabilities |= PNP_READ;
22 if (pnpbios_is_dynamic(dev))
This page took 0.03847 seconds and 4 git commands to generate.