LKML Archive on
help / color / mirror / Atom feed
* [PATCH 2.6.27.stable] ACPI: dock: avoid check _STA method
@ 2008-11-06 19:17 Len Brown
  0 siblings, 0 replies; only message in thread
From: Len Brown @ 2008-11-06 19:17 UTC (permalink / raw)
  To: stable; +Cc: linux-acpi, Linux Kernel Mailing List, Shaohua Li

commit 8b59560a3baf2e7c24e0fb92ea5d09eca92805db
Author: Shaohua Li <>
Date:   Thu Aug 28 10:02:03 2008 +0800

    ACPI: dock: avoid check _STA method
    In some BIOSes, every _STA method call will send a notification again,
    this cause freeze. And in some BIOSes, it appears _STA should be called
    after _DCK. This tries to avoid calls _STA, and still keep the device
    present check.
    Signed-off-by: Shaohua Li <>
    Signed-off-by: Len Brown <>

diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index 7d2edf1..25d2161 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -604,14 +604,17 @@ static int handle_eject_request(struct dock_station *ds, u32 event)
 static void dock_notify(acpi_handle handle, u32 event, void *data)
 	struct dock_station *ds = data;
+	struct acpi_device *tmp;
 	switch (event) {
-		if (!dock_in_progress(ds) && dock_present(ds)) {
+		if (!dock_in_progress(ds) && acpi_bus_get_device(ds->handle,
+		   &tmp)) {
 			if (!dock_present(ds)) {
 				printk(KERN_ERR PREFIX "Unable to dock!\n");
+				complete_dock(ds);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-06 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-06 19:17 [PATCH 2.6.27.stable] ACPI: dock: avoid check _STA method Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).