ACPI: Set flag DOCK_UNDOCKING when triggered via sysfs
authorHolger Macht <hmacht@suse.de>
Wed, 12 Mar 2008 00:07:27 +0000 (01:07 +0100)
committerLen Brown <len.brown@intel.com>
Tue, 18 Mar 2008 09:16:38 +0000 (05:16 -0400)
commit9171f83488940e4ff85f1b7137773eb1f306cdef
tree56440be40144ea5d83cb6f59bc7b49fe53252318
parentbaadac8b10c5ac15ce3d26b68fa266c8889b163f
ACPI: Set flag DOCK_UNDOCKING when triggered via sysfs

begin_undock() is only called when triggered via a acpi notify handler
(pressing the undock button on the dock station), but complete_undock() is
always called after the eject. So if a undock is triggered through a sysfs
write, the flag DOCK_UNDOCKING has to be set for the dock station,
too. Otherwise this will freeze the system hard.

Signed-off-by: Holger Macht <hmacht@suse.de>
Acked-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dock.c