Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1240543ybb; Fri, 29 Mar 2019 00:01:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqykynRrR/P9al/wepBisqKkZfrlVYLq3msJjMmq6sW4sBtNXwFxyNjgzieRYif4HskBgmsF X-Received: by 2002:a65:6383:: with SMTP id h3mr43202051pgv.11.1553842901437; Fri, 29 Mar 2019 00:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553842901; cv=none; d=google.com; s=arc-20160816; b=mlBCr5jmksLM62DcF8lSi0sH7fXjWo47pltl8j6zxK8SsF+4pNnZIuu+VKp2lxhxdD llhhT5/5hnAM9ZJRhFlfOK8KL8fQOzVo+9smF1w7+Zm27Iuk04qi84xGGq7smn3sUERb aSqAw0Qj44FWS9vvfGliN9MQhsv2xAuqs27Ob9S4C6OomWaujhQtP5TrRjCQLPjXH6Id deqC6NgnblvIVCMFTJr2GQH4Au3ceFABSstzenYj4C/hbmL0ZDklKB81yVUr/ELnUF0e HJC66fSFLzz8Ydq16Bmc2RuZWvNk+0cj/+mwwFe4q+TMwjrnShhJvYBVzJruXZ0PrKy0 6Tsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=g1nPZ3fawbW9uB4G/flZgW4Mvo3PKMF+JVIpwuzqTKs=; b=IyJc5ZHU6krJXkabaYwhD1Df6phCTB7Nr1XRwg5CRCsyGFJA/lumbjrPrvSdu3Nrob G852jDcG9n25CGFYWqLBlILH2K801wR0iU/v/Z9g5IQ1ZISsxw7RoTG7772To9jDx1l3 BFkU/reEGJct1y8a9sM4mcUfsgpu6Bk2KFOwh5Z4WFN388zLpVBtnEVCSBeGQVfJtrLr afLjl3H4xsew0oqv7HOm8vn1vlQ/h8RTsR+Q6qY6N8ajaO0XB4YjoYgbuCzi5nHvDqIn 9vw9CzRqzhU88hqFrQCmcY1FN8i5CRI/i5NKiXokE0cf83vFuqMbn2ZpmQszjC22bQuV 0LPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=KrUlOGAf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si1288766plb.140.2019.03.29.00.01.25; Fri, 29 Mar 2019 00:01:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=KrUlOGAf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728796AbfC2HAr (ORCPT + 99 others); Fri, 29 Mar 2019 03:00:47 -0400 Received: from mail-eopbgr10052.outbound.protection.outlook.com ([40.107.1.52]:58859 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728719AbfC2HAq (ORCPT ); Fri, 29 Mar 2019 03:00:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g1nPZ3fawbW9uB4G/flZgW4Mvo3PKMF+JVIpwuzqTKs=; b=KrUlOGAffpB0lTL5c1GNvq41m3LjE+Bj4UJD9kDcW7Dg9cy1n01PWjEx8eHL6xiAJnjhYsAJSMuGXUtmlyxdKQHGJHlPL0fGL21MxE9bOTisTzQKnfWHBV8F3ORy3V9wImvi+sqiHYFy5kAlavdZwtxD+sN54ig1AZQEQMc3D9Q= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3945.eurprd04.prod.outlook.com (52.134.65.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.19; Fri, 29 Mar 2019 07:00:43 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::f1b4:a1fb:cfd1:3f08]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::f1b4:a1fb:cfd1:3f08%7]) with mapi id 15.20.1750.017; Fri, 29 Mar 2019 07:00:43 +0000 From: Anson Huang To: "dmitry.torokhov@gmail.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-input@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH 1/2] input: keyboard: imx: no need to control interrupt status in event check Thread-Topic: [PATCH 1/2] input: keyboard: imx: no need to control interrupt status in event check Thread-Index: AQHU5f0glAeb6buLqE2+JexOYz88tw== Date: Fri, 29 Mar 2019 07:00:43 +0000 Message-ID: <1553842562-8481-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR04CA0013.apcprd04.prod.outlook.com (2603:1096:203:36::25) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d8b5a43e-b9b0-4e84-f580-08d6b4144262 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3945; x-ms-traffictypediagnostic: DB3PR0402MB3945: x-microsoft-antispam-prvs: x-forefront-prvs: 0991CAB7B3 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(396003)(136003)(376002)(39860400002)(189003)(199004)(7736002)(52116002)(81166006)(256004)(8676002)(110136005)(4326008)(386003)(25786009)(99286004)(26005)(53936002)(6506007)(105586002)(2201001)(6512007)(102836004)(305945005)(106356001)(36756003)(316002)(86362001)(486006)(81156014)(50226002)(66066001)(97736004)(6436002)(186003)(71190400001)(71200400001)(476003)(2616005)(2906002)(6486002)(478600001)(68736007)(5660300002)(6116002)(3846002)(8936002)(4744005)(2501003)(14454004);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3945;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: IzS0s19/3obEbT+FzO7lKUOYdl3sw29LSiHQwCOXf/vFBPT/hqm1757s3zBYg90ZqkDMUfnovG/0vbUiSLn3Q91fKW7eltPDkNJU0npJqv4IW2tnjEhhtG5pqIvNqQnDJOhik+XuaKslj08sUGO67B2UoDokSz2+VTY1wMReA9wcfiUbHdRLJRhpoerRnJHHCIPZR/zx9fwiivEAHwRONtEs9i8R2SxEy3bhQ5GRdmh8kmTg8P67YRM5osUonlqDvhL9egq3MXxBvWiHSOrG9cxurIWhQ3HeL6LiEuJVyv0u2N+PxVAqffS68JDm5iqBUNzYvLit2/iYC653qsntyqcOSJgJqEgBNkTa+r2ho+1UuS0OBPjC52yHhRpAs4ZxP7T72Hor6J+YW6sFbqq6+sZJEcZEAyvphg2+RkPmeds= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8b5a43e-b9b0-4e84-f580-08d6b4144262 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Mar 2019 07:00:43.1875 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3945 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to enable release interrupt and disable depress interrupt in event check, as a timer is setup for checking these events rather than interrupts. Signed-off-by: Anson Huang --- drivers/input/keyboard/imx_keypad.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/input/keyboard/imx_keypad.c b/drivers/input/keyboard/i= mx_keypad.c index 539cb67..7e32c36 100644 --- a/drivers/input/keyboard/imx_keypad.c +++ b/drivers/input/keyboard/imx_keypad.c @@ -276,11 +276,6 @@ static void imx_keypad_check_for_events(struct timer_l= ist *t) reg_val =3D readw(keypad->mmio_base + KPSR); reg_val |=3D KBD_STAT_KPKR | KBD_STAT_KRSS; writew(reg_val, keypad->mmio_base + KPSR); - - reg_val =3D readw(keypad->mmio_base + KPSR); - reg_val |=3D KBD_STAT_KRIE; - reg_val &=3D ~KBD_STAT_KDIE; - writew(reg_val, keypad->mmio_base + KPSR); } } =20 --=20 2.7.4