LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 2.6.25,26.stable] ACPI: dock: avoid check _STA method
@ 2008-11-06 19:18 Len Brown
  2008-11-07 22:11 ` patch acpi-dock-avoid-check-_sta-method.patch added to 2.6.26-stable tree gregkh
  2008-11-07 22:19 ` patch acpi-dock-avoid-check-_sta-method.patch added to 2.6.25-stable tree gregkh
  0 siblings, 2 replies; 3+ messages in thread
From: Len Brown @ 2008-11-06 19:18 UTC (permalink / raw)
  To: stable; +Cc: linux-acpi, Linux Kernel Mailing List, Shaohua Li

commit 8b59560a3baf2e7c24e0fb92ea5d09eca92805db
Author: Shaohua Li <shaohua.li@intel.com>
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.
    
    http://bugzilla.kernel.org/show_bug.cgi?id=10431
    
    Signed-off-by: Shaohua Li <shaohua.li@intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>

Index: linux-2.6.25.y/drivers/acpi/dock.c
===================================================================
--- linux-2.6.25.y.orig/drivers/acpi/dock.c
+++ linux-2.6.25.y/drivers/acpi/dock.c
@@ -599,14 +599,17 @@ static int handle_eject_request(struct d
 static void dock_notify(acpi_handle handle, u32 event, void *data)
 {
 	struct dock_station *ds = data;
+	struct acpi_device *tmp;
 
 	switch (event) {
 	case ACPI_NOTIFY_BUS_CHECK:
-		if (!dock_in_progress(ds) && dock_present(ds)) {
+		if (!dock_in_progress(ds) && acpi_bus_get_device(ds->handle,
+		   &tmp)) {
 			begin_dock(ds);
 			dock(ds);
 			if (!dock_present(ds)) {
 				printk(KERN_ERR PREFIX "Unable to dock!\n");
+				complete_dock(ds);
 				break;
 			}
 			atomic_notifier_call_chain(&dock_notifier_list,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* patch acpi-dock-avoid-check-_sta-method.patch added to 2.6.26-stable tree
  2008-11-06 19:18 [PATCH 2.6.25,26.stable] ACPI: dock: avoid check _STA method Len Brown
@ 2008-11-07 22:11 ` gregkh
  2008-11-07 22:19 ` patch acpi-dock-avoid-check-_sta-method.patch added to 2.6.25-stable tree gregkh
  1 sibling, 0 replies; 3+ messages in thread
From: gregkh @ 2008-11-07 22:11 UTC (permalink / raw)
  To: shaohua.li, gregkh, len.brown, linux-kernel; +Cc: stable, stable-commits


This is a note to let you know that we have just queued up the patch titled

    Subject: ACPI: dock: avoid check _STA method

to the 2.6.26-stable tree.  Its filename is

    acpi-dock-avoid-check-_sta-method.patch

A git repo of this tree can be found at 
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary


>From lenb@kernel.org  Fri Nov  7 14:08:55 2008
From: Shaohua Li <shaohua.li@intel.com>
Date: Thu, 06 Nov 2008 14:18:55 -0500 (EST)
Subject: ACPI: dock: avoid check _STA method
To: stable@kernel.org
Cc: linux-acpi@vger.kernel.org, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Shaohua Li <shaohua.li@intel.com>
Message-ID: <alpine.LFD.2.00.0811061417380.3106@localhost.localdomain>

From: Shaohua Li <shaohua.li@intel.com>

commit 8b59560a3baf2e7c24e0fb92ea5d09eca92805db upstream.

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.

http://bugzilla.kernel.org/show_bug.cgi?id=10431

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 drivers/acpi/dock.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -599,14 +599,17 @@ static int handle_eject_request(struct d
 static void dock_notify(acpi_handle handle, u32 event, void *data)
 {
 	struct dock_station *ds = data;
+	struct acpi_device *tmp;
 
 	switch (event) {
 	case ACPI_NOTIFY_BUS_CHECK:
-		if (!dock_in_progress(ds) && dock_present(ds)) {
+		if (!dock_in_progress(ds) && acpi_bus_get_device(ds->handle,
+		   &tmp)) {
 			begin_dock(ds);
 			dock(ds);
 			if (!dock_present(ds)) {
 				printk(KERN_ERR PREFIX "Unable to dock!\n");
+				complete_dock(ds);
 				break;
 			}
 			atomic_notifier_call_chain(&dock_notifier_list,


Patches currently in stable-queue which might be from shaohua.li@intel.com are

queue-2.6.26/acpi-dock-avoid-check-_sta-method.patch

^ permalink raw reply	[flat|nested] 3+ messages in thread

* patch acpi-dock-avoid-check-_sta-method.patch added to 2.6.25-stable tree
  2008-11-06 19:18 [PATCH 2.6.25,26.stable] ACPI: dock: avoid check _STA method Len Brown
  2008-11-07 22:11 ` patch acpi-dock-avoid-check-_sta-method.patch added to 2.6.26-stable tree gregkh
@ 2008-11-07 22:19 ` gregkh
  1 sibling, 0 replies; 3+ messages in thread
From: gregkh @ 2008-11-07 22:19 UTC (permalink / raw)
  To: shaohua.li, gregkh, len.brown, linux-kernel; +Cc: stable, stable-commits


This is a note to let you know that we have just queued up the patch titled

    Subject: ACPI: dock: avoid check _STA method

to the 2.6.25-stable tree.  Its filename is

    acpi-dock-avoid-check-_sta-method.patch

A git repo of this tree can be found at 
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary


>From lenb@kernel.org  Fri Nov  7 14:08:55 2008
From: Shaohua Li <shaohua.li@intel.com>
Date: Thu, 06 Nov 2008 14:18:55 -0500 (EST)
Subject: ACPI: dock: avoid check _STA method
To: stable@kernel.org
Cc: linux-acpi@vger.kernel.org, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Shaohua Li <shaohua.li@intel.com>
Message-ID: <alpine.LFD.2.00.0811061417380.3106@localhost.localdomain>

From: Shaohua Li <shaohua.li@intel.com>

commit 8b59560a3baf2e7c24e0fb92ea5d09eca92805db upstream.

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.

http://bugzilla.kernel.org/show_bug.cgi?id=10431

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 drivers/acpi/dock.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -599,14 +599,17 @@ static int handle_eject_request(struct d
 static void dock_notify(acpi_handle handle, u32 event, void *data)
 {
 	struct dock_station *ds = data;
+	struct acpi_device *tmp;
 
 	switch (event) {
 	case ACPI_NOTIFY_BUS_CHECK:
-		if (!dock_in_progress(ds) && dock_present(ds)) {
+		if (!dock_in_progress(ds) && acpi_bus_get_device(ds->handle,
+		   &tmp)) {
 			begin_dock(ds);
 			dock(ds);
 			if (!dock_present(ds)) {
 				printk(KERN_ERR PREFIX "Unable to dock!\n");
+				complete_dock(ds);
 				break;
 			}
 			atomic_notifier_call_chain(&dock_notifier_list,


Patches currently in stable-queue which might be from shaohua.li@intel.com are

queue-2.6.25/acpi-dock-avoid-check-_sta-method.patch

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-07 22:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-06 19:18 [PATCH 2.6.25,26.stable] ACPI: dock: avoid check _STA method Len Brown
2008-11-07 22:11 ` patch acpi-dock-avoid-check-_sta-method.patch added to 2.6.26-stable tree gregkh
2008-11-07 22:19 ` patch acpi-dock-avoid-check-_sta-method.patch added to 2.6.25-stable tree gregkh

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).