From patchwork Wed Dec 2 19:07:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Wan X-Patchwork-Id: 7745241 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C54B1BEEE1 for ; Wed, 2 Dec 2015 11:44:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E1E6820631 for ; Wed, 2 Dec 2015 11:44:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 741272062B for ; Wed, 2 Dec 2015 11:44:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757092AbbLBLoU (ORCPT ); Wed, 2 Dec 2015 06:44:20 -0500 Received: from mail-bl2on0071.outbound.protection.outlook.com ([65.55.169.71]:41760 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756697AbbLBLoT (ORCPT ); Wed, 2 Dec 2015 06:44:19 -0500 Received: from SN1PR12CA0022.namprd12.prod.outlook.com (10.162.96.160) by CY1PR12MB0713.namprd12.prod.outlook.com (10.163.238.19) with Microsoft SMTP Server (TLS) id 15.1.337.19; Wed, 2 Dec 2015 11:28:12 +0000 Received: from BY2NAM03FT007.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::208) by SN1PR12CA0022.outlook.office365.com (2a01:111:e400:5174::32) with Microsoft SMTP Server (TLS) id 15.1.331.20 via Frontend Transport; Wed, 2 Dec 2015 11:28:12 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=amd.com; alien8.de; dkim=none (message not signed) header.d=none; alien8.de; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from atltwp02.amd.com (165.204.84.222) by BY2NAM03FT007.mail.protection.outlook.com (10.152.84.70) with Microsoft SMTP Server id 15.1.346.13 via Frontend Transport; Wed, 2 Dec 2015 11:28:11 +0000 X-WSS-ID: 0NYQAIU-08-DR3-02 X-M-MSG: Received: from satlvexedge02.amd.com (satlvexedge02.amd.com [10.177.96.29]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by atltwp02.amd.com (Axway MailGate 5.3.1) with ESMTPS id 2E2FDD1A421; Wed, 2 Dec 2015 06:28:06 -0500 (EST) Received: from SATLEXDAG06.amd.com (10.181.40.13) by SATLVEXEDGE02.amd.com (10.177.96.29) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 2 Dec 2015 05:28:23 -0600 Received: from SCYBEXDAG03.amd.com (10.34.11.13) by satlexdag06.amd.com (10.181.40.13) with Microsoft SMTP Server (TLS) id 14.3.266.1; Wed, 2 Dec 2015 06:28:07 -0500 Received: from viwan-emmc.amd.com (10.237.75.243) by SCYBEXDAG03.amd.com (10.34.11.13) with Microsoft SMTP Server id 14.3.266.1; Wed, 2 Dec 2015 19:28:03 +0800 From: Wan Zongshun To: , , CC: , , Wan Zongshun Subject: [PATCH v2] Implement i8042 detect by BIOS FADT i8042 flag Date: Wed, 2 Dec 2015 14:07:18 -0500 Message-ID: <1449083238-13179-1-git-send-email-Vincent.Wan@amd.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:165.204.84.222; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(428002)(189002)(199003)(19580405001)(5003600100002)(19580395003)(36756003)(5003940100001)(229853001)(48376002)(87936001)(586003)(5008740100001)(11100500001)(1220700001)(1096002)(86362001)(50466002)(2201001)(50986999)(53416004)(47776003)(189998001)(101416001)(105586002)(77096005)(97736004)(106466001)(50226001)(5001770100001)(92566002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0713; H:atltwp02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0713; 2:/2QrAEezRM9lI0ucBaeB7wNkTH7mqtQZ6GADcHgLt4Zu64ftKKKhQR0cJrD4bDKCdwb4F9Ufv8ySPXaoxB60FWhS+071XjhNqyKT1vGDDgWrRrJsluXfUxOcXr8SDASdbgpnPFqzRQkB4+nWXGB3Gw==; 3:PM5x6tUcO5WDt0hgRuWgM43uZNS0OE66kChRSr53GG60YiihrxIyS1twYwdJS+R5zkBddru8NUTM5rs5qjUTa9duAZkglq2FVtF9bJvCXqVTgVaqB6ZZNdjfw1z6CqiR15FQltiw0CGFLitvytn1sZmwjCl1sOnrbh6awd7dO0XkUDp3xLFCohRIPMvBBd6W69RpHj2SREAMvVAFT+DjtthlPaxw316OC6yGUCME95k=; 25:4UfIJ9s9MW+IhBWUN6PAgsRyXI4gWcgne/hCrwO2dsMLvjx1hrprBKY45BDVaVUVSupCHCBOnpocbN9LmFsL+RCwvtwg/q36dqTexiw0V6fDi2Q1gXXUZNgvNIa6Ev9iYWUMZLO3vxzvcfcFJFfoo7Rr+ErHlBliAYcyUmXHjbTQmwEygn6FaG5IOoMsc6JOXOPWr/TGsSWhZgA4ccVyJrN5JCElvwUV2JakNZte338zDcghjYmBFjCqx4qVQDSEUAvEUkc1pO27wmkgMy0x7w== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR12MB0713; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0713; 20:PwFt76yJeNnPj4c1qti86IhK8LideeYlThVOO71xTNoeY/P/RfP3b7ymH0UH8gX9Nz69Pg1sDJNLNKFmx/uVKGwQ0cfcjiEx1wIfJq5UzDIEjmwi2WiRaePNv6P2dgaHezfHUm64/yMj5jBZKptjLBZiweyDcTBRvDZSq+0hCBHfg75Oi9PqI8igpa//6K7iqAtep1C2I288A2VtObpQ6tH3H9mC5+ENmMLcEmC3uopMkmrAi1RUua2MTjugj5eRTLhkvN1J2LKrR/ToU3wh00nu8StSlZLXUJ0vRhAbMpiJ/g9BchyL5vq/5K3+gqJBUBqwxL/M1JZvH/0yfW3hvw00IObjAjK/3bRYvcPEcyrFVEtwWYTJKAju92JOc+5lVL5ugGc+Q6fIZgFWKmiQJQXwV4nmq9XpeGnHY1DEsduqCtfNq2nj2ZP0Dgu5RBl8D92b5XKV7n3od1T9p72U7ulSps6/jEgd/xtA95r7r1mh7CTkQu6UUgyRmAckBONb; 4:VhUItqbd4lmZi1RGmsj5lggU7GHHPAqUd8FxwORmie9tX4QJDsNCmkMZabQ+KgC5TmJYJJu9grKX1lNjn/z5rydo1A5u6ntkxdqcGB2MzadmOH9JjgFwxZNxjaVTyzmlkTDtX+Wgcr8EvwJoQ6PJrt3okCjymUBh53doMsp9nJ9a7O8aSEQTJzigxvucdk/GZeRBk0nPgjbM+RaL63bp32C/6SPASA3V/kohSLEkvvxOZDFyhKWR9PdrfjY7UwGIXy3mIoVefl3Qybd1gtyAvYSWrqGzI3GGGGmJzUWvqzyjCOQuVP82VA+WErrb+LePg2sS8hfwgRO0hCIMrkWT/BaXSISAdhBNcBtE2BGuf7OQZeNIZQg8OW2nESyJFZPKUXLyrQL0Hgn482rahw12H5CQZ7wwesPifGX/27 Nsgqg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046); SRVR:CY1PR12MB0713; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0713; X-Forefront-PRVS: 077884B8B5 X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0713; 23:B3hocR3X5zlE54DDH85cctpbYPYZcDR0snX5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TDm2QH6p0o6kZrOBSlTGDzYA7A==; 24:qQYfSkl9SjR6P50msQlYKlIK+SN+aP/EOsVPsJf77kEA+Y1xjLjohFZF1tiqO/kPvl6SdxWo+xmCvh3LTxX72vSRGjToYz3V2usEjFBW9UY=; 20:/Qb/9gcLPeKqAwkhrYm5wlc6Fi7wBibNLjylLewwwvnjXJOjV1Wy1NjpK47Wem8xu5TK6R8NmF45psqPrGxotqm23XWhUnlJgGQY+d6qWPmHI0RBjUn0aWNwNN3xTgud2Dt+LLdpsR++tzbdmc83u8UHvSnk96XOQT03Z4oTzeDi/4YQ2j9qjVnTi+QzPB5jCAnnv8O33X/ZneA/lhS+1f0ow2vxUX4Z5Igd9eyeXpx1JdQ2eavxohrBo5qBHmeI SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2015 11:28:11.3443 (UTC) X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.222]; Helo=[atltwp02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0713 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham 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 Detecting x86 platform supporting i8042 or not, we should resort to BIOS's FADT i8042 flag per ACPI spec. Currently, Windows is conforming to this spec, and request this flag to detect i8042 supporting. Signed-off-by: Wan Zongshun Acked-by: Borislav Petkov --- drivers/input/serio/i8042-x86ia64io.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h index c115565..73686bd 100644 --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h @@ -9,6 +9,7 @@ #ifdef CONFIG_X86 #include +#include #endif /* @@ -1047,6 +1048,9 @@ static int __init i8042_platform_init(void) /* Just return if pre-detection shows no i8042 controller exist */ if (!x86_platform.i8042_detect()) return -ENODEV; + + if (!(acpi_gbl_FADT.boot_flags & ACPI_FADT_8042)) + return -ENODEV; #endif /*