From patchwork Wed Nov 30 01:23:06 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: 9453385 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 EF5316071E for ; Wed, 30 Nov 2016 01:23:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E156E283E0 for ; Wed, 30 Nov 2016 01:23:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D322D28410; Wed, 30 Nov 2016 01:23:27 +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 499E9283E0 for ; Wed, 30 Nov 2016 01:23:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755923AbcK3BXV (ORCPT ); Tue, 29 Nov 2016 20:23:21 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:36198 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753195AbcK3BXQ (ORCPT ); Tue, 29 Nov 2016 20:23:16 -0500 Received: by mail-qk0-f196.google.com with SMTP id h201so19955276qke.3; Tue, 29 Nov 2016 17:23:16 -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=mnjycMplJFJWk2HF7JfoXrRuLBBMtZ5jxUCoTHoOLllWxyCRY7pWP8D5kMq6tC40Vf x3ZZtwgu18FKu6OjU4D0fhITOPgynCwtkPPqALht8QD9tGVEE9ydcjpT9g/YgHi3mkjz e60pmOEoscp2vr9IOwGHZqxo+PpBWTfUTtXXwGA6ObG9K7r/jHUu57VVpSpgG2n0Gm4w ExbFsHtdSZ97TBxP61h/thvRtrfOU8EoL+9LGHtWLOUoKpm41YVcaVrLPt8aEUoJqTBr ylhR8qRP8QD91mMgjel8a/prJu5LaPZNEh3Q6Tb4ICE7TuTevPtsUQC9ZTmVWLcQgjDj ymCQ== 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=Bl7pnVJpSPL2vPhmHKr5CupZu3wvT0QemE/a64rtDd9wXoOZxYvMJy66H8n6w2ciFC jLgYCkavdZ/TKYj/aOcYAYAFwRBXsl9T7XBI10KbktY8Rzk8trbbzL84LGmHc580Q6B6 yd6ghNGhOlmT97X/1+s8B3ztG4OCzGb84TxYgPBFFI68kTMK/uCTzSD8S7a2pvhtB9pI Bw2Fn6JCsHzk2gfC29fJEwUqNa3LFEoOYRFBJyTSKkw5Zy6RSBGgVbwBtBLm+t5QJkyQ A5usC5oBYZVwTBYp5/6oRtHAlqa08F98WlZUWnLRqHuhrnTbWIM3xw+I4F7zLGbhhWtN 3izA== X-Gm-Message-State: AKaTC016a6MWhciZao64TodnfcopQU7Enp18feMePyAqhWbSX0Wy686ZJHiO6szUhcjjMg== X-Received: by 10.55.146.130 with SMTP id u124mr29800037qkd.176.1480468995499; Tue, 29 Nov 2016 17:23:15 -0800 (PST) Received: from localhost.localdomain ([191.248.104.246]) by smtp.gmail.com with ESMTPSA id b63sm32088219qka.39.2016.11.29.17.23.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Nov 2016 17:23:15 -0800 (PST) From: Marcos Paulo de Souza Cc: andy.shevchenko@gmail.com, stable@vger.kernel.org, Marcos Paulo de Souza , Corentin Chary , Darren Hart , acpi4asus-user@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 RESEND] platform/x86/asus-nb-wmi.c: Add X45U quirk Date: Tue, 29 Nov 2016 23:23:06 -0200 Message-Id: <20161130012307.8059-1-marcos.souza.org@gmail.com> X-Mailer: git-send-email 2.9.3 To: unlisted-recipients:; (no To-header on input) 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."),