tree d2468578cb327adbd3d69feb610a79b8b8a0f84d
parent 3d35600a9de8e2816d0e3726f64b7271af6fdda4
author David Shaohua Li <[EMAIL PROTECTED]> Wed, 03 Aug 2005 19:00:11 -0400
committer Len Brown <[EMAIL PROTECTED]> Wed, 03 Aug 2005 19:04:10 -0400

[ACPI] PCI interrupt link suspend/resume - revert to 2.6.12 behaviour

This patch disables the PCI Interrupt Link refernece counts,
which should not co-exist with the 2.6.12 irq_router.resume
method or else a double acpi_pci_link_set() could result
on resume.

Signed-off-by: David Shaohua Li <[EMAIL PROTECTED]>
Signed-off-by: Len Brown <[EMAIL PROTECTED]>

 drivers/acpi/pci_link.c |   11 +++++++++++
 1 files changed, 11 insertions(+)

diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
--- a/drivers/acpi/pci_link.c
+++ b/drivers/acpi/pci_link.c
@@ -692,7 +692,18 @@ acpi_pci_link_free_irq(acpi_handle handl
                return_VALUE(-1);
        }
 
+#ifdef FUTURE_USE
+       /*
+        * The Link reference count allows us to _DISable an unused link
+        * and suspend time, and set it again  on resume.
+        * However, 2.6.12 still has irq_router.resume
+        * which blindly restores the link state.
+        * So we disable the reference count method
+        * to prevent duplicate acpi_pci_link_set()
+        * which would harm some systems
+        */
        link->refcnt --;
+#endif
        ACPI_DEBUG_PRINT((ACPI_DB_INFO,
                "Link %s is dereferenced\n", acpi_device_bid(link->device)));
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to