- acpi-set-flag-dock_undocking-when-triggered-via-sysfs.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     acpi: set flag DOCK_UNDOCKING when triggered via sysfs
has been removed from the -mm tree.  Its filename was
     acpi-set-flag-dock_undocking-when-triggered-via-sysfs.patch

This patch was dropped because it was merged into mainline or a subsystem tree

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>
Acked-by: Kristen Carlson Accardi <kristen.c.accardi@xxxxxxxxx>
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

origin.patch
git-acpi.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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux