Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5050419ybe; Tue, 17 Sep 2019 01:34:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyg3htDcRNTYdq633ZMl65o5fyWf7z21DVo2PLiP3wW34OKzuOjTyEnH8Kh6zL1Dr/Ms9MR X-Received: by 2002:aa7:da01:: with SMTP id r1mr3373860eds.87.1568709241565; Tue, 17 Sep 2019 01:34:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568709241; cv=pass; d=google.com; s=arc-20160816; b=MwFFgLTC4oGGg1UiQwSRD8ZUUBzRfY0zijZIy+bNHaVMvd2Yarb0mtU3WFtI7bt1AU DaOtxr4qfHhdNJlhQwkZ5sa4SuJbM6gkeDhnc/WsI7pvHK1IzZAu32kboK1A9Be2/xx5 6Ie6vzQnyANjilzbbxQb1A52qyOnEycOsKKe/7Ay3wMxKlhjug+XEuK4/IC4mDGZ1CSh N9BgZQtIn9DvwaSqxtDtkfPzMJhGLKvAoXJynwOU6OM5g3gyKye8YgxtsK029Pqr7C+g W/OUumHFVg+L2Myny49EstczQrsofuUO8ULLudQv/eh9vZCJL2MFp3NFZsLtdeka+zcf ZE9w== ARC-Message-Signature: i=2; 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=baIm9h3PDUpUsaSHjX0W6yJEysEisCnEL0oKdj7EK9o=; b=lLD8odSV0jdoVZ9u+LNGvJteomAK1j3QjVxCEh+JwGXdTRdqTKRcPguapbMgC/onLI mnzJHt8OJZb8OWZMPwljxyuRYArU8AeB6P28xaXDynQCDkNvhsMPthxbwoW5VZGbRSoO dFlvs/P3e3J1mVzSIpEc+PZgNnrXBpsywOfcluGGgkm3u14zdDrGKlGB7bJb8wFNhJgo vm0vmI/T8k5I2LPU/AY12k374Lk2VIjLuYbv0e7cn5BYkt4Ofn37uowepSx6q/AY4ZEN aBhpzY9Itl8mY/WAvY2jKqgs2N1o+jj4UIt+NZc3sNmp/+MkpoWlR4gzDMoxY11md3+x nNyA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=mAYZXEPE; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 k63si910831edc.347.2019.09.17.01.33.37; Tue, 17 Sep 2019 01:34:01 -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=selector2 header.b=mAYZXEPE; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 S2391950AbfIQCmh (ORCPT + 99 others); Mon, 16 Sep 2019 22:42:37 -0400 Received: from mail-eopbgr60073.outbound.protection.outlook.com ([40.107.6.73]:12967 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728470AbfIQCmg (ORCPT ); Mon, 16 Sep 2019 22:42:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VeBjNlqLlgYEIH+rcgxxynYeMM9b9TojXZUcbCJCrRfvJqkV8R50tCoWm8UggEIRdHzwdBjGQbKKKDNjLIwiRJF18gwoo5MVE4mi9UAd3XuHfWlc6Uv7VepPy730/vKiRUDfXDHjaXHhxKvzOzOFH7Bgh40T1dzc1UbiguxzKUjm8sjMTRPBgJiujvW7FC0tVZ0NIvWFqJ6OPO0Y2IvtVj5CKFYAJT+b7oBcl+E61HBdFywxa2iNSL10WpYpbJryCKj3UytEY6n+B03ptVMM1H8CSsTjgHSn2eVNEGRqYIYdiPVKRAmQtD05PFS3Z9ttimiB+m+ypfGbGbg1tAe6rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=baIm9h3PDUpUsaSHjX0W6yJEysEisCnEL0oKdj7EK9o=; b=eOMKQHzc527Ef6QQing9B4dMRp0VZLieOMfHFrqc23WRRAGlbldGi0jWw/nlLiL6Wi2fXqfUYf4qbPcj5+hFeWkhbl3129fS6M1kCb/dgJTB5u1wQrOpGDUJWujC1f0h6sA8cUOExHCbg8rjt3pIyjRdlUJwOb8cI606Udv0vEHbNsE9UnueSQjXcJngl4OOqvTFxkApzZsNJtgLgYVkvgj7RrDA+XVZ/9odgS50xQ3peHMYnd3pqxDvNTEmB301lrhnoDiwTPN1aiLxMFhrCQ5ZhHZPEJtFCprtXNvzkzoLhCYdiDJt+FDaGn6g9hScd9AQ4lx52z5MSHYvQwZW+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=baIm9h3PDUpUsaSHjX0W6yJEysEisCnEL0oKdj7EK9o=; b=mAYZXEPEYnUS45Gs0Ctx/WwzSFFhcDE4siDtx2Qtx/jSMQ/cc4wnx/BvnU3+eqdHRDwPEj5vgjSuHav42wfMayT1ItLgLirnVe/HHE/gpLYQ4FpclNPTqe7mq8D1KwzVfC5OaRghP/8AMJdtqZL2Cx4VwdGSzKzf+JCAx9CqUxM= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3946.eurprd04.prod.outlook.com (52.134.72.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.22; Tue, 17 Sep 2019 02:42:30 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::8958:299c:bc54:2a38]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::8958:299c:bc54:2a38%7]) with mapi id 15.20.2263.023; Tue, 17 Sep 2019 02:42:30 +0000 From: Anson Huang To: Dmitry Torokhov CC: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will@kernel.org" , Aisheng Dong , "ulf.hansson@linaro.org" , Andy Duan , Peng Fan , Leonard Crestez , Daniel Baluta , "olof@lixom.net" , "mripard@kernel.org" , "arnd@arndb.de" , "jagan@amarulasolutions.com" , "dinguyen@kernel.org" , "bjorn.andersson@linaro.org" , "marcin.juszkiewicz@linaro.org" , "andriy.shevchenko@linux.intel.com" , "yuehaibing@huawei.com" , "cw00.choi@samsung.com" , "enric.balletbo@collabora.com" , "m.felsch@pengutronix.de" , Jacky Bai , "ronald@innovation.ch" , "stefan@agner.ch" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-input@vger.kernel.org" , dl-linux-imx Subject: RE: [PATCH V4 2/5] input: keyboard: imx_sc: Add i.MX system controller key support Thread-Topic: [PATCH V4 2/5] input: keyboard: imx_sc: Add i.MX system controller key support Thread-Index: AQHVbDoTG9IptYOIlUSe8in/1bTkN6cu+20AgAAdosA= Date: Tue, 17 Sep 2019 02:42:30 +0000 Message-ID: References: <1568602373-14164-1-git-send-email-Anson.Huang@nxp.com> <1568602373-14164-2-git-send-email-Anson.Huang@nxp.com> <20190916235330.GI237523@dtor-ws> In-Reply-To: <20190916235330.GI237523@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: cea7282a-923e-4e25-619c-08d73b18afac x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DB3PR0402MB3946; x-ms-traffictypediagnostic: DB3PR0402MB3946:|DB3PR0402MB3946: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1303; x-forefront-prvs: 01630974C0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(366004)(136003)(39860400002)(346002)(199004)(189003)(43544003)(44832011)(3846002)(478600001)(8676002)(81156014)(5660300002)(7416002)(99286004)(81166006)(229853002)(86362001)(7696005)(102836004)(6916009)(26005)(186003)(74316002)(6506007)(6246003)(6436002)(9686003)(55016002)(66476007)(64756008)(66946007)(476003)(6116002)(4326008)(446003)(11346002)(66066001)(25786009)(486006)(8936002)(76176011)(76116006)(52536014)(2906002)(66446008)(33656002)(14454004)(316002)(305945005)(7736002)(54906003)(71190400001)(71200400001)(14444005)(66556008)(256004);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3946;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: RfuUy/kP/OLX6/QLTztxFD91/jW5cdOcL7SnmTtJkb88cWRabiR51Y8YmdX8FrtR+lQCkjkdlo2ADzpv3VVeITd/AdO7Kai3GDjutIE/WKkHRWdc9tzJxUdq3n1f8tJBMUGkv1wty9909bfWhMfs2v8WW3H4s8OP0wDZ2eDXGRzM8DGYMQMuRbLTr0UvEuC6heTclr2nsxDUBczScB1ULzgG2Rwy7rzb2QYPw3hODgqL4fvptBdnA5AAaVRs7ioeFxmRiIDqRmK6d47vpq+2OHgBRb1V1Rj4lnLhGzr+LMpJQk+Uuxp/dR1/1y5LUiixp8i1XmW+O4GgL6dr0KPmqjFZzPwGM5j2UZfoArwHe6zgGBAm4knrYUZLEh5nHKbPT5VCBhfoyGFGAIHD0cnvB99EOz+6ca0M72uozRU8aYc= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cea7282a-923e-4e25-619c-08d73b18afac X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2019 02:42:30.7099 (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-CrossTenant-userprincipalname: YG1Pk5opLotdtfIQlgmihwQgWjSt0mGKTimQnK08dTgxNjiS3SA3HM7xk6rFC59sAOQYGzo/mY24/pbJJP2gSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3946 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIERtaXRyeQ0KDQo+IE9uIE1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