From patchwork Tue Nov 8 00:02:32 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: 9416257 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 38DD960585 for ; Tue, 8 Nov 2016 00:02:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18A0D28DD9 for ; Tue, 8 Nov 2016 00:02:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEB8E28DEA; Tue, 8 Nov 2016 00:02:44 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 6E48E28DD9 for ; Tue, 8 Nov 2016 00:02:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751932AbcKHACn (ORCPT ); Mon, 7 Nov 2016 19:02:43 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:33284 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750926AbcKHACm (ORCPT ); Mon, 7 Nov 2016 19:02:42 -0500 Received: by mail-qk0-f195.google.com with SMTP id x190so13120737qkb.0; Mon, 07 Nov 2016 16:02:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=npM8CAsO3mLSwYy7d9VYeUGBnHrW/lFnZaDQRlN4duo=; b=Iczclga3fHBZ5aVcKI1Ri3HodpLXqKCUkopqJvuY7W1UUY9FSh7k/8oirGlOGntnNZ CnSjw+UbAenB2GcyNuoeWku+Zl+vRT11ApPuRAwdBBFzDDEmv1670ZmQVYrf9IWiPBe8 0WJa0T9TJQt6ICH7voi9F0TjDyX5lyFBklELOazAlhZQL4gl3Kg7l/cMOJ+3DxlCnmyV S8mfrqdmHeI/yImlNQTrGG/gGvBF9XYefjthOHiCoiX/Kl0MPbzcSr6HakdfPNRQWbLJ RUN8NsAyIO+pm6wxcfm0e6mut4hrQtLA6ITTVwa8Buj1T5b+hL+oh/jFjHzQxgO6XtTi OJzA== 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=npM8CAsO3mLSwYy7d9VYeUGBnHrW/lFnZaDQRlN4duo=; b=RGc404sRXeH0Vx+pq92olZidjSNzYyP9jImBIHyZcOjvgsMuQlKVg6vpOV8wLt2hRd rn6rwBdClv3xDlcrWR5SB6OzwU02QMOI6LF/8T4+wh7eEoTQT/H27X9YginEMVLf/k0p 50sZhJOaO63pKls4H8hqIRxtSt7TBglKTkAhTQUUrwjK4A0tJ59pfE3l06VbquMYn4fd QEIQQcYRFewJUvz4lj75p7aq07qGp/K2fp7I9A7T807MkxWvQQ8drVbfNHjMRy+GSFlE jsCkKYS9BQutGHdcgqRxpaiDJTQbZmntXoAhvmarlKKeUc6vJM0R5my9FZS7sLDywvUf y7MQ== X-Gm-Message-State: ABUngvfDnHf5mGGlkXo2PoZiU7RRO7C8c5+JROp/R2KozCO23w3QYnOceyOgVT2CH+EAKQ== X-Received: by 10.55.158.4 with SMTP id h4mr9364973qke.41.1478563361294; Mon, 07 Nov 2016 16:02:41 -0800 (PST) Received: from localhost.localdomain (189.26.188.32.dynamic.adsl.gvt.net.br. [189.26.188.32]) by smtp.gmail.com with ESMTPSA id z7sm17870445qkz.7.2016.11.07.16.02.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2016 16:02:40 -0800 (PST) From: Marcos Paulo de Souza To: dvhart@infradead.org Cc: corentin.chary@gmail.com, acpi4asus-user@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Marcos Paulo de Souza Subject: [PATCH v3] platform/x86/asus-nb-wmi.c: Add X45U quirk Date: Mon, 7 Nov 2016 22:02:32 -0200 Message-Id: <1478563352-2524-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 Cc: stable@vger.kernel.org # 4.4.x- Signed-off-by: Marcos Paulo de Souza --- v2 -> v3: Add stable version in the CC line of stable email address 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."),