[PATCH] Fix Thinkpad A21m shutdown

2006-04-12 Thread Thomas Renninger
Subject: Fix Thinkpad A21m shutdown The A21m Thinkpad (maybe also others) have a GDCK method and a DOCK device. It seems that on others machines the GDCK is the docking device. Installing the notify handler for a GDCK device fails. When module is unloaded it is tried to remove the never installed

Re: [PATCH] Fix Thinkpad A21m shutdown

2006-04-12 Thread Borislav Deianov
On Wed, Apr 12, 2006 at 03:32:12PM +0200, Thomas Renninger wrote: The A21m Thinkpad (maybe also others) have a GDCK method and a DOCK device. It seems that on others machines the GDCK is the docking device. Installing the notify handler for a GDCK device fails. When module is unloaded it is

[patch 0/3] Redesigned Dock Patches

2006-04-12 Thread Kristen Accardi
After getting more laptop/dock combos tested, it's apparent to me that I need to redesign the dock patches to not exclusively use acpiphp to handle dock events. This is because there are dock stations with no pci on them at all, and it doesn't make sense for the apci pci hotplug driver to handle

[patch 1/3] acpi: dock driver

2006-04-12 Thread Kristen Accardi
Create a driver which lives in the acpi subsystem to handle dock events. This driver is not an acpi driver, because acpi drivers require that the object be present when the driver is loaded. Signed-off-by: Kristen Carlson Accardi [EMAIL PROTECTED] --- drivers/acpi/Kconfig|6

[patch 2/3] acpiphp: use new dock driver

2006-04-12 Thread Kristen Accardi
Modify the acpiphp driver to use the acpi dock driver for dock notifications. Only load the acpiphp driver if we find we have pci dock devices Signed-off-by: Kristen Carlson Accardi [EMAIL PROTECTED] --- drivers/pci/hotplug/acpiphp_dock.c | 438 -

[patch 3/3] acpiphp: prevent duplicate slot numbers when no _SUN

2006-04-12 Thread Kristen Accardi
Dock bridges generally do not implement _SUN, yet show up as ejectable slots. If you have more than one ejectable slot that does not implement SUN, with the current code you will get duplicate slot numbers. So, if there is no _SUN, use the current count of the number of slots found instead.

Re: [patch 1/3] acpi: dock driver (refreshed)

2006-04-12 Thread Kristen Accardi
Create a driver which lives in the acpi subsystem to handle dock events. This driver is not an acpi driver, because acpi drivers require that the object be present when the driver is loaded. Signed-off-by: Kristen Carlson Accardi [EMAIL PROTECTED] --- drivers/acpi/Kconfig|6

Re: [patch 2/3] acpiphp: use new dock driver

2006-04-12 Thread Christian Trefzer
Hi Kristen, wanted to try this one out on my Dell Latitude CPiA and C/Dock II, but something seems to have happened to the patch along the way: Applying 'acpiphp: use new dock driver' fatal: corrupt patch at line 206 Patch failed at 0002. I tried looking at the patch itself and found nothing

Re: Hibernate

2006-04-12 Thread Shaohua Li
On Wed, 2006-04-12 at 20:50 +0800, Cleaveland, AJ Allan @ IS wrote: I'm trying to get hibernate to work on CentOS 4. What I really want to do is use hibernate to start-up the machine every time. To do this I would create an image to come out of hibernate with and set the machine to

Re: [patch 1/3] acpi: dock driver

2006-04-12 Thread Andrew Morton
Kristen Accardi [EMAIL PROTECTED] wrote: Create a driver which lives in the acpi subsystem to handle dock events. This driver is not an acpi driver, because acpi drivers require that the object be present when the driver is loaded. ... +/** + * add_dock_dependent_device - associate a