/[pkg-src]/trunk/kernel26-magellan/patches-2.6.21-r13/0155-2.6.21-suspend2-2.2.9.17-add-debug-mode.patch |
Contents of /trunk/kernel26-magellan/patches-2.6.21-r13/0155-2.6.21-suspend2-2.2.9.17-add-debug-mode.patch
Parent Directory | Revision Log
Revision 319 -
(show annotations)
(download)
Sun Aug 19 18:14:21 2007 UTC (17 years, 1 month ago) by niro
File size: 2458 byte(s)
Sun Aug 19 18:14:21 2007 UTC (17 years, 1 month ago) by niro
File size: 2458 byte(s)
-2.6.21-magellan-r13
1 | diff -ruN linux-2.6.21.orig/drivers/base/core.c linux-2.6.21/drivers/base/core.c |
2 | --- linux-2.6.21.orig/drivers/base/core.c 2007-05-15 20:06:32.000000000 +0200 |
3 | +++ linux-2.6.21/drivers/base/core.c 2007-05-15 20:05:37.000000000 +0200 |
4 | @@ -645,8 +645,10 @@ |
5 | if (!((dev->class && dev->class->resume) || |
6 | (dev->bus && (dev->bus->resume || dev->bus->resume_early))) && |
7 | !dev->pm_safe) { |
8 | +#ifdef CONFIG_SUSPEND2_DEBUG |
9 | printk("Device driver %s lacks bus and class support for " |
10 | "being resumed.\n", kobject_name(&dev->kobj)); |
11 | +#endif |
12 | if (do_dump_stack) |
13 | dump_stack(); |
14 | } |
15 | diff -ruN linux-2.6.21.orig/drivers/pci/pci-driver.c linux-2.6.21/drivers/pci/pci-driver.c |
16 | --- linux-2.6.21.orig/drivers/pci/pci-driver.c 2007-05-15 20:07:58.000000000 +0200 |
17 | +++ linux-2.6.21/drivers/pci/pci-driver.c 2007-05-15 20:05:44.000000000 +0200 |
18 | @@ -452,8 +452,12 @@ |
19 | driver_unregister(&drv->driver); |
20 | |
21 | if (!drv->resume) |
22 | + { |
23 | +#ifdef CONFIG_SUSPEND2_DEBUG |
24 | printk("PCI driver %s lacks driver specific resume support.\n", |
25 | drv->name); |
26 | +#endif |
27 | + } |
28 | |
29 | return error; |
30 | } |
31 | diff -ruN linux-2.6.21.orig/drivers/usb/core/driver.c linux-2.6.21/drivers/usb/core/driver.c |
32 | --- linux-2.6.21.orig/drivers/usb/core/driver.c 2007-05-15 20:08:05.000000000 +0200 |
33 | +++ linux-2.6.21/drivers/usb/core/driver.c 2007-05-15 20:05:51.000000000 +0200 |
34 | @@ -789,8 +789,12 @@ |
35 | usbfs_update_special(); |
36 | usb_create_newid_file(new_driver); |
37 | if (!new_driver->resume) |
38 | + { |
39 | +#ifdef CONFIG_SUSPEND2_DEBUG |
40 | printk("USB driver %s lacks resume support.\n", |
41 | new_driver->name); |
42 | +#endif |
43 | + } |
44 | } else { |
45 | printk(KERN_ERR "%s: error %d registering interface " |
46 | " driver %s\n", |
47 | diff -ruN linux-2.6.21.orig/kernel/power/Kconfig linux-2.6.21/kernel/power/Kconfig |
48 | --- linux-2.6.21.orig/kernel/power/Kconfig 2007-05-15 20:08:58.000000000 +0200 |
49 | +++ linux-2.6.21/kernel/power/Kconfig 2007-05-15 20:22:32.000000000 +0200 |
50 | @@ -304,6 +304,15 @@ |
51 | atomic copy. Should not normally be needed, but here for verification and |
52 | diagnostic purposes. |
53 | |
54 | + config SUSPEND2_DEBUG |
55 | + bool "Enable suspend2 debugging" |
56 | + default n |
57 | + depends on SUSPEND2_CORE |
58 | + ---help--- |
59 | + If you have any problems when hibernating, say Y here. This will result in |
60 | + additional debugging messages to be written to the system log. This is useful |
61 | + when trying to guess which modules are causing suspend2 to not work properly. |
62 | + |
63 | config SUSPEND_SHARED |
64 | bool |
65 | depends on SUSPEND2_CORE || SOFTWARE_SUSPEND |