The patch titled acpi: set flag DOCK_UNDOCKING when triggered via sysfs has been added to the -mm tree. Its filename is acpi-set-flag-dock_undocking-when-triggered-via-sysfs.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: acpi: set flag DOCK_UNDOCKING when triggered via sysfs From: Holger Macht <hmacht@xxxxxxx> 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@xxxxxxx> Cc: Len Brown <lenb@xxxxxxxxxx> Cc: Kristen Carlson Accardi <kristen.c.accardi@xxxxxxxxx> Cc: <stable@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/acpi/dock.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/acpi/dock.c~acpi-set-flag-dock_undocking-when-triggered-via-sysfs drivers/acpi/dock.c --- a/drivers/acpi/dock.c~acpi-set-flag-dock_undocking-when-triggered-via-sysfs +++ a/drivers/acpi/dock.c @@ -710,6 +710,7 @@ static ssize_t write_undock(struct devic if (!count) return -EINVAL; + begin_undock(dock_station); ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); return ret ? ret: count; } _ Patches currently in -mm which might be from hmacht@xxxxxxx are git-acpi.patch acpi-set-flag-dock_undocking-when-triggered-via-sysfs.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html