From patchwork Mon Oct 31 20:21:12 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: 9406439 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 AFC5C60234 for ; Mon, 31 Oct 2016 20:23:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A86C28A7B for ; Mon, 31 Oct 2016 20:23:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C75628ACF; Mon, 31 Oct 2016 20:23:43 +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 2A56C28A7B for ; Mon, 31 Oct 2016 20:23:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S946393AbcJaUX2 (ORCPT ); Mon, 31 Oct 2016 16:23:28 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:33864 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S945995AbcJaUX1 (ORCPT ); Mon, 31 Oct 2016 16:23:27 -0400 Received: by mail-qk0-f195.google.com with SMTP id o68so7726771qkf.1; Mon, 31 Oct 2016 13:23:26 -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=opDe9YOJk7xDkG3UFDRMzc/RGHhxLJeEHQ+tg/I9vpg=; b=UdiaDswWX+opaCPKbu6DfudLTFEDc9qvBngEHYlTCzm2nTis4XiDguqHE8h6pQ3sZC ubzXF6npG9Q0Vw7HiUwW3K5N/v862yc2RYC8mt4fS4ihbZiZH1GjuaWyRvpc18LODxc9 foSOHkzZlsbWMFPkXF+pMZQECXIES8Z+K8KY3nzSLCYY1CzqlHJBUmGUU9CgpSesaz2c gyrQXT4jjZyXjewCV5sQqPJfZSjZV1zj9Z8ulGFavTDq2AwkTk8yde0bR3+unCUuNIQb JIV+vxP91zN7L20MQAQQK5EyXTCesOteKNTzY80TULplMPXEKv5YzXNWgvAfBiy8slu4 53Uw== 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=opDe9YOJk7xDkG3UFDRMzc/RGHhxLJeEHQ+tg/I9vpg=; b=aSJT2hShgHUPeYdXrUWmSnqcCz5InAXSYG2pl94Cm86aOQEcgCyHNQ4OSVp1V70/0W zmGsjaglJHkGjGm2bDUPvPRJL+F5xFqZFfK+QMYMrNO3ngzeUY7hYyle8ivphGNTcpFZ CJ9YqW2aJcvaiiIW2HxGTWnKHsFVQ7WpPByNNmPpoicyOkmbsS5ANudQeTuiZMpu4Ja0 DCA7ojXZYpe0OIgbOqxIIdYMFGySPmryyZc+OS15J29w+EvNEWRB6eoSYuJacPqd8C0a SfeBdhPUsaReti4u3/m0ojuZNvnKt2g189HdxlFGhIb0acjKBlnREj0XN7khYpjqI6Mh BIxg== X-Gm-Message-State: ABUngvcXEmWDEFtvo6RZ46LWh/gOKAOslluTeNZBjhOZsa4A/moBlflXdGDDpNtfzUM6jw== X-Received: by 10.55.132.68 with SMTP id g65mr28704899qkd.8.1477945406372; Mon, 31 Oct 2016 13:23:26 -0700 (PDT) Received: from localhost.localdomain ([177.96.45.94]) by smtp.gmail.com with ESMTPSA id 8sm10178685qty.2.2016.10.31.13.23.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Oct 2016 13:23:25 -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: stable@vger.kernel.org, Marcos Paulo de Souza Subject: [PATCH] platform/x86/asus-nb-wmi.c: Add X45U quirk Date: Mon, 31 Oct 2016 18:21:12 -0200 Message-Id: <1477945272-4703-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 --- 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."),