]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ACPI: Properly clear flags on false-positives and send uevent on sudden unplug
authorHolger Macht <hmacht@suse.de>
Wed, 6 Aug 2008 15:56:01 +0000 (17:56 +0200)
committerAndi Kleen <ak@linux.intel.com>
Fri, 15 Aug 2008 01:02:42 +0000 (03:02 +0200)
commitafd7301ddb762b66bf1831b0820b402e5d2c439d
tree8c2db5dc66fbcc6157615e8d041b81a788061e2b
parentb635acec48bcaa9183fcbf4e3955616b0d4119b5
ACPI: Properly clear flags on false-positives and send uevent on sudden unplug

Some devices emit a ACPI_NOTIFY_DEVICE_CHECK while physically unplugging
even if the software undock has already been done and dock_present() check
fails. However, the internal flags need to be cleared (complete_undock()).

Also, even notify userspace if the dock station suddently went away
without proper software undocking.

This happens on a Acer TravelMate 3000

Signed-off-by: Holger Macht <hmacht@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/acpi/dock.c