Carsten Otto wrote:

> 1: http://comments.gmane.org/gmane.linux.kernel/1315719

Please test the attached patch, for example using the following steps:

 0. prerequisites:

        apt-get install git build-essential

 1. get the kernel history if you don't already have it:

        git clone \
          git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

 2. fetch point releases:

        cd linux
        git remote add stable \
          git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
        git fetch stable

 3. configure, build, test:

        git checkout stable/linux-3.2.y
        cp /boot/config-$(uname -r) .config; # current configuration
        scripts/config --disable DEBUG_INFO
        make localmodconfig; # optional: minimize configuration
        scripts/config --module ASUS_WMI
        scripts/config --module ASUS_NB_WMI
        make deb-pkg; # optionally with -j<num> for parallel build
        dpkg -i ../<name of package>; # as root
        reboot
        ... test test test ...

   Hopefully it reproduces the bug.  So:

 4. try the patch:

        cd linux
        git am -3sc /path/to/patch
        make deb-pkg; # maybe with -j4
        dpkg -i ../<name of package>; # as root
        reboot
        ... test test test ...

This will let us know if the patch works against a 3.2.y kernel.

Hope that helps,
Jonathan
From: Alex Hung <alex.h...@canonical.com>
Date: Wed, 20 Jun 2012 11:47:35 +0800
Subject: asus-wmi: use ASUS_WMI_METHODID_DSTS2 as default DSTS ID.

According to responses from the BIOS team, ASUS_WMI_METHODID_DSTS2
(0x53545344) will be used as future DSTS ID. In addition, calling
asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS2, 0, 0, NULL) returns
ASUS_WMI_UNSUPPORTED_METHOD in new ASUS laptop PCs. This patch fixes
no DSTS ID will be assigned in this case.

Signed-off-by: Alex Hung <alex.h...@canonical.com>
Reported-by: Carsten Otto <o...@informatik.rwth-aachen.de>
Signed-off-by: Jonathan Nieder <jrnie...@gmail.com>
---
 drivers/platform/x86/asus-wmi.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index d1049ee3c9e8..26fba2d770c8 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -1431,14 +1431,9 @@ static int asus_wmi_platform_init(struct asus_wmi *asus)
         */
        if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS, 0, 0, NULL))
                asus->dsts_id = ASUS_WMI_METHODID_DSTS;
-       else if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS2, 0, 0, NULL))
+       else
                asus->dsts_id = ASUS_WMI_METHODID_DSTS2;
 
-       if (!asus->dsts_id) {
-               pr_err("Can't find DSTS");
-               return -ENODEV;
-       }
-
        /* CWAP allow to define the behavior of the Fn+F2 key,
         * this method doesn't seems to be present on Eee PCs */
        if (asus->driver->wapf >= 0)
-- 
1.7.11.rc3

Reply via email to