Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4956354img; Tue, 26 Mar 2019 22:07:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIEmed6tNXgQNWmhEbWNO0kD9B8WqYRyGy6MAJIYWzBtPMe8sVoNCFBmSssfLZNEScO92D X-Received: by 2002:a63:5c43:: with SMTP id n3mr32085083pgm.163.1553663257936; Tue, 26 Mar 2019 22:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553663257; cv=none; d=google.com; s=arc-20160816; b=l4sGoV4SDQ8/NvQH6szt+LGa0njnJS3Nwh92gq12l8AHKrQPuE8FC2EjP870VRl12p cy0AbCx5zeEsicEBHHNhdsUYbnUXuGmnB9vNgIzE56luGh1rWaLa9aD1LGFw8YtNgi7v v4nnaOaLn0MBhXWviO86P8/yK9jsixPlIKdKfIE+DsLPnXDI695i+zZEnxdsSmmq8NBh oaM37yIzD73QSHn2/RscJc2RclZsJBbnIjzy+mNrdJXJzoRpWp1tha5Vqz8wcTjiMQjH LOQYKP8soh2vK5DV1qKuqqxjDG9xdsvyn0CxfYSaDPswsi3dcx+oL7d9bKKz5dra9KZe wEAQ== 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:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=+HnlqR99s0CXU2oB8Fh4poGC05k9hXH95Lst0eqScUg=; b=QRK5Pb9dWxzNajWP4WkG1wh5mJQuAFvgmPhV3Y2bWGCzGYqJKhD4Pdl7fgSG1dKmAj AZdaREqO2i8VJmuNVMUmUsUgXrSdrAog/JUgHVK5VuJBBkVGMPBPx9Ss7HwMkfGfq8wa siPvCkPKJ6/mgX4BUzfgdXoUz82Q08podHrfRclGQJNbwr/l0BQ8e3EURLEy7p8nXW27 Ic5KBrwnn0iKX/xxI9kkpPOB4z0jGOy9ohTfpEEJhGbU4nJyYX2NNz4d+qURzWmcHqv3 7Q4Re98VYtFSou2iBhu+ztw7gUIp3aU74sisNfDFeXyHgFt7SNmd+66M2lfeW7BOoaA9 631w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=ggJ+AsXl; 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 z10si2790503pgi.233.2019.03.26.22.07.22; Tue, 26 Mar 2019 22:07:37 -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=ggJ+AsXl; 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 S1726268AbfC0FFd (ORCPT + 99 others); Wed, 27 Mar 2019 01:05:33 -0400 Received: from mail-eopbgr30059.outbound.protection.outlook.com ([40.107.3.59]:32942 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725730AbfC0FFc (ORCPT ); Wed, 27 Mar 2019 01:05:32 -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=+HnlqR99s0CXU2oB8Fh4poGC05k9hXH95Lst0eqScUg=; b=ggJ+AsXl8O3lD6QAaDEiCWUHh7uBvn7+O1nir3CqQGLu+czr5cogDDtPL8GbWMO7npSSkva2DBdjTFNPGhOVgXopC87VONiXcfBgPdS9rIbSEoDTZW5Z6nnO8zflxNNwDW/d8FPs0nCeEux7HsJOrIw8CQPm3pO4P8cbGWTduBA= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3899.eurprd04.prod.outlook.com (52.134.71.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.16; Wed, 27 Mar 2019 05:05:28 +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.1730.019; Wed, 27 Mar 2019 05:05:28 +0000 From: Anson Huang To: "dmitry.torokhov@gmail.com" CC: Fabio Estevam , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: RE: [PATCH] input: keyboard: snvs: make sure irq is handled correctly Thread-Topic: [PATCH] input: keyboard: snvs: make sure irq is handled correctly Thread-Index: AQHU5Edd/2+nSp1pAUqjt9pZVWLgMKYe4qeAgAAJLYA= Date: Wed, 27 Mar 2019 05:05:28 +0000 Message-ID: References: <1553654517-7810-1-git-send-email-Anson.Huang@nxp.com> <20190327042903.GA40550@dtor-ws> In-Reply-To: <20190327042903.GA40550@dtor-ws> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d1fe4e5f-7119-4381-5dde-08d6b271d43a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3899; x-ms-traffictypediagnostic: DB3PR0402MB3899: x-microsoft-antispam-prvs: x-forefront-prvs: 0989A7979C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(136003)(366004)(376002)(346002)(39850400004)(189003)(199004)(13464003)(33656002)(4326008)(106356001)(97736004)(7736002)(99286004)(305945005)(25786009)(44832011)(2351001)(68736007)(71190400001)(71200400001)(74316002)(105586002)(256004)(14444005)(6916009)(2906002)(478600001)(66066001)(5660300002)(3846002)(6116002)(53936002)(6246003)(54906003)(316002)(2501003)(14454004)(229853002)(1361003)(55016002)(9686003)(6436002)(8936002)(5640700003)(52536014)(8676002)(476003)(86362001)(7696005)(26005)(486006)(81166006)(76176011)(81156014)(11346002)(53546011)(446003)(102836004)(6506007)(186003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3899;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: 6S/Wx5mMiWij6FCW9Jb9vWSAVBCn1nN1tA45ozbaxYLu3L9Um//mT75ZI3nhEp4+F/s9gfy+rrkeXt288ebcdCt1sHjVd4MjV7GQ0G08YAkbvBvsTcspUhdrR+bBVqz3+fnU7IS7orYSMaVuSLOAZ4nFNE/hJZ3swTO0kzPJ5PsTmYCBzp1mEBC4Mo3V7g+KFafh47wiwKVrSy6PKS28pz6hVJ797n9rbIrSmUZLJowO8YZg9wzTKs9MY6qVbgZiVcvaJLDXbXPbZrpUK0NmtKXCQmSPoISOMbm5gLE74FKd4g7ag/uNAGclP2bSh/4O6Usv5c0C20fDIwx1v5SmfwUqpRJejdaDa9hGoeeqefgvT5ZZqM9KutMajvzEeWB2VTtWPQYNywJDVhdtSrrb9CCQhazkWMorINty/9+MFN4= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1fe4e5f-7119-4381-5dde-08d6b271d43a X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2019 05:05:28.0346 (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: DB3PR0402MB3899 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIERtaXRyeQ0KDQpCZXN0IFJlZ2FyZHMhDQpBbnNvbiBIdWFuZw0KDQo+IC0tLS0tT3JpZ2lu YWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGRtaXRyeS50b3Jva2hvdkBnbWFpbC5jb20gW21haWx0 bzpkbWl0cnkudG9yb2tob3ZAZ21haWwuY29tXQ0KPiBTZW50OiAyMDE5xOoz1MIyN8jVIDEyOjI5 DQo+IFRvOiBBbnNvbiBIdWFuZyA8YW5zb24uaHVhbmdAbnhwLmNvbT4NCj4gQ2M6IEZhYmlvIEVz dGV2YW0gPGZhYmlvLmVzdGV2YW1AbnhwLmNvbT47IGxpbnV4LWlucHV0QHZnZXIua2VybmVsLm9y ZzsNCj4gbGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZzsgZGwtbGludXgtaW14IDxsaW51eC1p bXhAbnhwLmNvbT4NCj4gU3ViamVjdDogUmU6IFtQQVRDSF0gaW5wdXQ6IGtleWJvYXJkOiBzbnZz OiBtYWtlIHN1cmUgaXJxIGlzIGhhbmRsZWQNCj4gY29ycmVjdGx5DQo+IA0KPiBIaSBBbnNvbiwN Cj4gDQo+IE9uIFdlZCwgTWFyIDI3LCAyMDE5IGF0IDAyOjQ3OjA2QU0gKzAwMD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