From patchwork Fri Dec 6 05:24:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Lu X-Patchwork-Id: 3293091 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 35E689F386 for ; Fri, 6 Dec 2013 05:24:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B16F20412 for ; Fri, 6 Dec 2013 05:24:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DFC1B20395 for ; Fri, 6 Dec 2013 05:24:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750761Ab3LFFYB (ORCPT ); Fri, 6 Dec 2013 00:24:01 -0500 Received: from mga02.intel.com ([134.134.136.20]:25124 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752Ab3LFFYA (ORCPT ); Fri, 6 Dec 2013 00:24:00 -0500 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 05 Dec 2013 21:24:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,839,1378882800"; d="scan'208";a="447796662" Received: from aaronlu.sh.intel.com ([10.239.37.67]) by orsmga002.jf.intel.com with ESMTP; 05 Dec 2013 21:23:58 -0800 Message-ID: <52A15F72.1050408@intel.com> Date: Fri, 06 Dec 2013 13:24:02 +0800 From: Aaron Lu Organization: Intel, Shanghai, PRC MIME-Version: 1.0 To: "Rafael J. Wysocki" CC: ACPI Devel Mailing List , Jeffery To , Wouter Depypere Subject: [PATCH] ACPI / blacklist: disable Win8 mode for ThinkPad X201 and Latitude E6230 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Both ThinkPad X201 and Latitude E6230 have problems under Win8 mode, so blacklist Win8 mode for them. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=60697 Reported-and-tested-by: Jeffery To Reported-and-tested-by: Wouter Depypere Cc: 3.8 and above Signed-off-by: Aaron Lu --- drivers/acpi/blacklist.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c index 05ee8f61bfb5..97a8e395f72e 100644 --- a/drivers/acpi/blacklist.c +++ b/drivers/acpi/blacklist.c @@ -324,6 +324,32 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = { }, /* + * The bluetooth functionality is unconditionally enabled + * after a S3 cycle on Thinkpad X201 under Win8 mode. + */ + { + .callback = dmi_disable_osi_win8, + .ident = "ThinkPad X201", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X201"), + }, + }, + + /* + * The hardware switch for enable/disable wifi on + * Dell Latitude E6230 is broken under Win8 mode. + */ + { + .callback = dmi_disable_osi_win8, + .ident = "Dell Latitude E6230", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Latitude E6230"), + }, + }, + + /* * BIOS invocation of _OSI(Linux) is almost always a BIOS bug. * Linux ignores it, except for the machines enumerated below. */