]> git.pld-linux.org Git - packages/kernel.git/blob - kernel-2.6-pnpbios.patch
- converted to utf8
[packages/kernel.git] / kernel-2.6-pnpbios.patch
1 Finally, I debugged it today. The problem is in PNP BIOS. pnp_bus_suspend() 
2 calls pnp_stop_dev() for the device if the device can be disabled according 
3 to pnp_can_disable(). The problem is that pnpbios_disable_resources() 
4 returns -EPERM if the device is not dynamic (!pnpbios_is_dynamic()) but 
5 insert_device() happily sets PNP_DISABLE capability/flag even if the device 
6 is not dynamic. So we try to disable non-dynamic devices which will fail. 
7 This patch prevents insert_device() from setting PNP_DISABLE if the device is 
8 not dynamic and fixes suspend on my system.
9
10 Signed-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.087583 seconds and 3 git commands to generate.