From patchwork Fri Oct 16 13:27:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Wan X-Patchwork-Id: 7411021 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 54A8BBF90C for ; Fri, 16 Oct 2015 06:08:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7CC3F20A65 for ; Fri, 16 Oct 2015 06:07:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B9E020A63 for ; Fri, 16 Oct 2015 06:07:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752218AbbJPGHT (ORCPT ); Fri, 16 Oct 2015 02:07:19 -0400 Received: from mail-by2on0086.outbound.protection.outlook.com ([207.46.100.86]:25312 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751854AbbJPGHQ (ORCPT ); Fri, 16 Oct 2015 02:07:16 -0400 Received: from BY2PR12CA0033.namprd12.prod.outlook.com (10.160.121.43) by BN4PR12MB0850.namprd12.prod.outlook.com (10.164.59.12) with Microsoft SMTP Server (TLS) id 15.1.300.14; Fri, 16 Oct 2015 05:51:16 +0000 Received: from BY2NAM03FT024.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::204) by BY2PR12CA0033.outlook.office365.com (2a01:111:e400:2c84::43) with Microsoft SMTP Server (TLS) id 15.1.300.14 via Frontend Transport; Fri, 16 Oct 2015 05:51:16 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=amd.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; 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 BY2NAM03FT024.mail.protection.outlook.com (10.152.84.229) with Microsoft SMTP Server id 15.1.306.8 via Frontend Transport; Fri, 16 Oct 2015 05:51:15 +0000 X-WSS-ID: 0NWATLD-08-B29-02 X-M-MSG: Received: from satlvexedge01.amd.com (satlvexedge01.amd.com [10.177.96.28]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by atltwp02.amd.com (Axway MailGate 5.3.1) with ESMTPS id 27055BD88D8; Fri, 16 Oct 2015 01:51:12 -0400 (EDT) Received: from SATLEXDAG03.amd.com (10.181.40.7) by satlvexedge01.amd.com (10.177.96.28) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 16 Oct 2015 00:51:17 -0500 Received: from SCYBEXDAG04.amd.com (10.34.11.14) by satlexdag03.amd.com (10.181.40.7) with Microsoft SMTP Server (TLS) id 14.3.266.1; Fri, 16 Oct 2015 01:51:13 -0400 Received: from viwan-emmc.amd.com (10.237.75.243) by SCYBEXDAG04.amd.com (10.34.11.14) with Microsoft SMTP Server id 14.3.266.1; Fri, 16 Oct 2015 13:48:37 +0800 From: Vincent Wan To: , , CC: , , Vincent Wan Subject: [PATCH] input: i8042: add quirk to implement i8042 detect for AMD Date: Fri, 16 Oct 2015 09:27:00 -0400 Message-ID: <1445002020-12672-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)(199003)(189002)(53416004)(46102003)(36756003)(19580395003)(50466002)(2201001)(105586002)(106466001)(5003600100002)(19580405001)(64706001)(97736004)(86362001)(11100500001)(189998001)(87936001)(5003940100001)(101416001)(5001770100001)(50986999)(77096005)(47776003)(48376002)(50226001)(229853001)(5001920100001)(5007970100001)(92566002)(5008740100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN4PR12MB0850; H:atltwp02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0850; 2:qA7oUJMURvY4lJ46mNFoy8ZSvtlfUcCYfepuihfiWSkxMjFugTqqsXeiT8Bvva714p0cwJBloh5PTSRgt7HJrmhDrO6wiqV0xkKJswC3z/AmZ8HzsciplXf6FGKZdtfYxKLRUvaAOKqcH4cyoR93r85lzyRVZW5LAB/l8cOUmCE=; 3:HKJOLfKLF9znpXEwkUPA80I8nXPCPVYVovW7vqAv3aFwy6iwDLkt0EnQ4kLbkBhf5WmOodGOFZcGGhsWDOS1+ClUNX9FL/MfyW0KfmTgQNEpTxBw0P1PbUvTLBIN+EcgZKS8X6WtBcwfZdVtUbVZjeeMULU1w7j4qQhlffrV7PjgP6aUVGm+srs3KN/ermduD8zJEHMV/uM0Fl2cEY1qwn0hxoCYplQmzRYwPZsk5u9wtftXGJiQpMQ+d4GX8fZR; 25:7POXMEnx2FUvLZnebwNNJj+56LSroWEmE4WwmauSGByX/ei75iMUV7Qc4xRE6rjAE0Ig08ffWGkQYIbk77R+Xxn0h/qrWrX9cJ3vN7BsB0TzXC3wBCQBSdqH4ZOGCSkPpsg9jSdObAeM3a1dkHABgPsFhZ52S2FEKz3k/K3krels+z2ICP3VE1n+Z240bM162cN99Nah7cCrPslq9cDcrydkiewz70o5lNlsa95pK9Piln25EswPQI4z+AMCB8RgvzFea2DrX3mW7Fhkf9AySQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN4PR12MB0850; X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0850; 20:lgB4S/OEvYQm1l5bnjGXDcitB5rRW4XLH4lbaR1FILa1eYKtuhPYYgxPxnOeEqFvzZa9TzQMuhgJVEJQlMPpdbFclKmS/EFE67SCfgzxlPcg2/ZtRrzGAoAswlDSuzf9imzlgswvIEyaMGYkgaPoX52M8o7CTOasq6gFGPZ+fxSTN9ScN4ZeAiUWRkwFCVCV4SB0xxvCCS7CWyLkSK6S22xQWFPrUGL3oIjirKelIV6GL3d4uKvhDK1y747vUpypUNjbNk9WE59PsWq5k2ylJb9CNwEx1R9SU01ED3T/NUDYyHWobtMGy8lZAgbivYZ92HINHGoYX+vYfbu9MbHCcXIm+Y5AiK4rZtDQefz0NwsqrTbMhciUIuxBX8/DypQVWF64Ir+DcR72ijXXQxF14S4FyavHI/kQVBmNduPtVwxsepzvqzRM7Y6JIk+txZAtPUCF8RoGfUCma218btOtUFgKhx80Ncd18MNSyQ2cB3MwkzYL2tgtgaLjlK+SEC9s; 4:Z5JX4ZWvfbWbm/ig5BtbpVOumJ4FxdXYGxSGxPE4j+oCWTKBfYkOvBw5l9HLptMX0UVYcSafmpaLGvYMcCUI5C8mS24JgN10/RLiqb4fuR8vl2/wPVG9d/aKg6cwFlpbvoqS5E9ZaYyQtkmX92qmmVm9YtLolRcko8Qug4PaAXhSM4tl8OHyB+8z0zz59PzLTny9BwkIvjy2bGlNDWxfuCP8f6UsozSYIaZEsJjyDcT8NCEEVcQe9wOwlZrr4XgQjgEYmIs8/a5//7076YEvHwOg1Yb+ySsSGrsdAYI+yrox4FBFpyWTly7LEDqdWu9lWTjpSmUgAfZ+P6friYIyJbWu9CRPwfp7V1qJxE2T8gw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001); SRVR:BN4PR12MB0850; BCL:0; PCL:0; RULEID:; SRVR:BN4PR12MB0850; X-Forefront-PRVS: 0731AA2DE6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN4PR12MB0850; 23:yhho5VXkyD+hCHewX22gYUtMVl8uDCgYNkpdC2Xoi?= =?us-ascii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hoJSKwJDC3VNUWFlhk1QkY?= =?us-ascii?Q?aogixQD1cLFXjLpTpK2OlMYguyPN5cOw+BLBHeSDg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0850; 5:ZiPZUbluE+mSQlqTGJlpzABbX6KXeRMI3C9wbBkr3eYofPMum0wLh4neguh5/Pc+fg6DxR2BAHVGRKHSL5NWgCw98BIuMGdPIEhWqEYxZYICj/p0TJjc10hG7ZC8tQeT4TwzWvjO/Sm8ZVo8/eNS7A==; 24:9Vu8kKoSrzaIGmSwRozc2s3lbdEaF3wK5PIXGAzKuMrjrZgXF1V9mxkk+6qOjVdCV63Vo2k0r8tEztFn78klx9Sxsx09/Rk12JVH2NXxs9Q=; 20:s0khdHEO6sxU41w0m3Ri1k/01TM1GzwOXO44p6Q70HTaX4A5NuprHX+pJSzHs53HCl9cUEaP5mvK3gRfOckW2g9zRLH9uVrVlUo0aOim5DIPsVUXVYob1xtQ7xNsqfxocBDrW2sJsnqqIT+t0OG+a55adDwy5RuSi66H6MI15CoQk9v61Do4OeYPYfCVeCBzcN+LAWevT+2KhJBVDiD8hF+IMA/B800kdpqsdXZYEVhyg7DOixMwsQr1gaOeYirS SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2015 05:51:15.6618 (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: BN4PR12MB0850 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 platform supports i8042 or not, AMD resorted to BIOS's FADT i8042 flag. Signed-off-by: Vincent Wan --- drivers/input/serio/i8042-x86ia64io.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h index c115565..bf3a605 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,11 @@ 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 (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) { + if (!(acpi_gbl_FADT.boot_flags & ACPI_FADT_8042)) + return -ENODEV; + } #endif /*