From patchwork Tue Nov 1 01:56:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcos Paulo de Souza X-Patchwork-Id: 9406825 X-Patchwork-Delegate: andy.shevchenko@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E1CC860721 for ; Tue, 1 Nov 2016 01:56:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7437293A0 for ; Tue, 1 Nov 2016 01:56:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9766293A5; Tue, 1 Nov 2016 01:56:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2344F293A0 for ; Tue, 1 Nov 2016 01:56:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161316AbcKAB40 (ORCPT ); Mon, 31 Oct 2016 21:56:26 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:36612 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161310AbcKAB4Z (ORCPT ); Mon, 31 Oct 2016 21:56:25 -0400 Received: by mail-qk0-f195.google.com with SMTP id z190so11109501qkc.3; Mon, 31 Oct 2016 18:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=4hM5ohG0zXHBYjSr3N47i8W70lviubPSZr0jyarACjY=; b=FqOeiAj0l2oTUFk/xG7BRYte0ZF3rI2Zr+PAkXGSTOOvYybN1RoHQZ48batIM3K7h8 dMMaC+9edl/XiB4uybSI4wU6D8Ja5XUttznlLwO0VCGt5rlM4pNGrbiPH6FobnINoLU7 beN/FaMJ4G9eI4fhH6xn5QgQzBiwEWq/XwpTLOdJNL9RSE618+8dO1kjYEdVS4NaPu9q qkWd6pCt8OZR4Loo5aTkdkwNvSM+oYUmEDWSIpFzTHEcjQYZuEL3k9X3QT1JH3+14OoO KVznvGSeKMklpLLrAno7lV5w/aHQ0wnwRBgapJ9EK/PJrl8emFh+pWleApgvofLYe8Q8 ZTLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4hM5ohG0zXHBYjSr3N47i8W70lviubPSZr0jyarACjY=; b=DDoYSF7PbPZsentZzGIfUz3Hxbdzg8V1XJNOhNsHHjeYs5QPmutLtfxsHrV1bWstkW RlkH2pCRcc0lWIDIJ+nXqygxVoMzxDq6duS+w5uLwQ0aRdy/ye5SSfHARpxSB5+UW+xr ZdlEugpmXGSCHT5b2VEf6HN1KTEdkapd/LdwojgD57hiMuwlAMcAOdUcRm6iZ8VwZenC +02jyby0D5wCW3DAXg8eDV2K2fFIpLScvron3T3gvoeA6jDKzgq8LBHWB2xdR8NceNZ8 gsI5qotSDWazcdQK4F7nRw/Jcz4MB/eT3FAALopR3gyBau/J3trGQzoio72YljHcKI7z Kr2A== X-Gm-Message-State: ABUngvckMDAzvf7fTA61jzbu66w8wnE0ZKUbNWlP1/lCK5Iz8LG8Q/wqsR66/ikDl4x00A== X-Received: by 10.55.74.1 with SMTP id x1mr22400300qka.316.1477965384616; Mon, 31 Oct 2016 18:56:24 -0700 (PDT) Received: from localhost.localdomain ([177.132.132.165]) by smtp.gmail.com with ESMTPSA id k73sm14697795qke.36.2016.10.31.18.56.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Oct 2016 18:56:23 -0700 (PDT) From: Marcos Paulo de Souza To: corentin.chary@gmail.com, dvhart@infradead.org, acpi4asus-user@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marcos Paulo de Souza , stable@vger.kernel.org Subject: [PATCH v2] platform/x86/asus-nb-wmi.c: Add X45U quirk Date: Mon, 31 Oct 2016 23:56:10 -0200 Message-Id: <1477965370-24892-1-git-send-email-marcos.souza.org@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Without this patch, the Asus X45U wireless card can't be turned on (hard-blocked), but after a suspend/resume it just starts working. Following this bug report[1], there are other cases like this one, but this Asus is the only model that I can test. [1] https://ubuntuforums.org/showthread.php?t=2181558 Signed-off-by: Marcos Paulo de Souza Cc: --- This patch applies smoothly in 4.8.6 and 4.4.29. I hope now I followed the instructions correctly. v1 -> v2: Add stable copy and specify the stable version to apply this patch drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index 26e4cbc..6032b70 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c @@ -175,6 +175,15 @@ static const struct dmi_system_id asus_quirks[] = { }, { .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. X45U", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "X45U"), + }, + .driver_data = &quirk_asus_wapf4, + }, + { + .callback = dmi_matched, .ident = "ASUSTeK COMPUTER INC. X456UA", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),