Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp184858yba; Wed, 8 May 2019 18:43:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy8GH0ejLGoEydTifPNutq1rSx9pN6C2tDZa4aWzv0Fc1ZnbPvbgtD3+TUsP+RQRbIZbrT X-Received: by 2002:a62:6582:: with SMTP id z124mr1322330pfb.0.1557366230964; Wed, 08 May 2019 18:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557366230; cv=none; d=google.com; s=arc-20160816; b=BprQ464Ir8ZCsUxU0MPYehAK6ccGcHbe/lzBjEi1iQrnGRgKFgRKz0z61Xu/i8Dnpx /jxaihTby65qaotuj4uX9dGqjP56TEeYD9r3298EMBc2nEYSdX/SJaFz7g6aC6x4zYU3 KWjj03KEOMoH1w7idJOxKw8WbmOezviA6vyTsM1XufGi94R9NYozgJSXQbLsLWYg2yYp 0W+Ohethg/6eKIinrKUCUeFO5QRT6JUaGSXRQ0E55D4nSafZSfQCzzMOliRMYItNadiQ hpvAdpqfxfNROC1cKDjHkjp1fowhOlvHk6fQKY6TmT7fo/HR/Ulca0lXIflusrDfxH5o taZw== 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=9yjIi5T4r1k+Y5iVTrYemlvNvQlXb4Ph7NXm6a6DFwg=; b=v4guiOEOwtjftKsitdWh+eKl8D1Isiu5Ax/mviJKFzShEq3B2clBnkzyd/ENSNJppk qWOcIC/53uWRHX31SSI4gXpu7KGTf/EoZIY3Xp/JGsMhIdP/eNB1uszE3l5yWn8mxawi 5JUXX4YCFMZ9xnnkiKkwlBAuaf+7091DX9YBGGAdlVRafmh4bduais/FN6oIrUXhZMPz 4rAvuHbeJJivHxNgxm0Byb0EtLBqLa3lriazhwX8kCQ9pPtWNazID0j5BTao4lFWVmsW TFhH+co4gdfjU9hlLAHvREO3SwFEpQ33mJhPjQSkxHAt1V2uCFyJe+hwmkZcOKEXp3vx ISPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=qdi0xmA0; 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 184si773909pfg.32.2019.05.08.18.43.34; Wed, 08 May 2019 18:43:50 -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=qdi0xmA0; 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 S1726557AbfEIBlO (ORCPT + 99 others); Wed, 8 May 2019 21:41:14 -0400 Received: from mail-eopbgr50045.outbound.protection.outlook.com ([40.107.5.45]:1798 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725832AbfEIBlO (ORCPT ); Wed, 8 May 2019 21:41:14 -0400 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=9yjIi5T4r1k+Y5iVTrYemlvNvQlXb4Ph7NXm6a6DFwg=; b=qdi0xmA0MepyFEWti81CqxQ9AWdcIuz1/4kC3xhacwIdGOfAUoik++ed81PI1Muyo9ZOB6U6IbIi93o7n/l9V84wi4tnZ6uQw2VFZuiG6mHUcYeuDsSdC+gqxK0bXsCYWO6r7Gt6ZUYMqJrLoz8q4NSVGROm/yc/HFPmKQk8eQs= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3929.eurprd04.prod.outlook.com (52.134.70.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.20; Thu, 9 May 2019 01:41:09 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::d035:3bd0:a56a:189d]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::d035:3bd0:a56a:189d%2]) with mapi id 15.20.1878.022; Thu, 9 May 2019 01:41:09 +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: RE: [RESEND] input: keyboard: imx: make sure keyboard can always wake up system Thread-Topic: [RESEND] input: keyboard: imx: make sure keyboard can always wake up system Thread-Index: AQHU6odaZd/8EWsin0yXXO1zjKS4q6ZMPHMggBX/AtA= Date: Thu, 9 May 2019 01:41:09 +0000 Message-ID: References: <1554341727-16084-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: 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: 824628c3-f030-45f1-2ea8-08d6d41f6925 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3929; x-ms-traffictypediagnostic: DB3PR0402MB3929: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:923; x-forefront-prvs: 003245E729 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(366004)(39860400002)(376002)(346002)(396003)(189003)(199004)(13464003)(5660300002)(316002)(52536014)(7696005)(99286004)(229853002)(478600001)(76176011)(68736007)(8936002)(102836004)(11346002)(53546011)(476003)(446003)(9686003)(81156014)(44832011)(55016002)(81166006)(33656002)(53936002)(73956011)(8676002)(2501003)(486006)(26005)(6436002)(76116006)(66946007)(64756008)(66446008)(66476007)(66556008)(110136005)(14454004)(86362001)(4326008)(66066001)(6246003)(25786009)(186003)(2201001)(6506007)(2906002)(7736002)(305945005)(256004)(14444005)(71200400001)(71190400001)(3846002)(6116002)(74316002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3929;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: 547PZskJZTgfEpZQCdALeeYZhPP4sg1kok9BdNe6JzvxzmJxKy76XWRWcwR3EhVqlmsiOwGXyinW0cBNFpl1B5Cz9r32e18XT8Uf0Zhr32Ush/MXmTv7R589TADPtNmOPVuuYivDDjdZPy5yDGIO6ZoNwyQNTmN1dVkV+pO6UHyPj1lHNQqo7Ofi1wO13ArewetlJVlFEj2h8Y69u1O+Mex7SEIQ9Whw9pEykmHZH1MtAyL/2cn4vC/tAVjm3UHeiZgN1ZFdefRAqMg62yVDKxGt69SNj3aJraIo7FnkGrYFwcPB+M3fM90V2G+/3ncWRzlLQfXnY4A4F+JQ5cZr/9dKSbogm1yiX98+xvQOo1cYUqO3bLJtIYrnOOsoqhle2LMm5jsWg44Lt1y5gISzAj352CzrMXWs+FSXys6/J3Q= 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: 824628c3-f030-45f1-2ea8-08d6d41f6925 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 May 2019 01:41:09.1322 (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: DB3PR0402MB3929 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UGluZy4uLg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEFuc29uIEh1 YW5nDQo+IFNlbnQ6IFRodXJzZGF5LCBBcHJpbCAyNSwgMjAxOSA5OjUwIEFNDQo+IFRvOiBkbWl0 cnkudG9yb2tob3ZAZ21haWwuY29tOyBzaGF3bmd1b0BrZXJuZWwub3JnOw0KPiBzLmhhdWVyQHBl bmd1dHJvbml4LmRlOyBrZXJuZWxAcGVuZ3V0cm9uaXguZGU7IGZlc3RldmFtQGdtYWlsLmNvbTsN Cj4gbGludXgtaW5wdXRAdmdlci5rZXJuZWwub3JnOyBsaW51eC1hcm0ta2VybmVsQGxpc3RzLmlu ZnJhZGVhZC5vcmc7IGxpbnV4LQ0KPiBrZXJuZWxAdmdlci5rZXJuZWwub3JnDQo+IENjOiBkbC1s aW51eC1pbXggPGxpbnV4LWlteEBueHAuY29tPg0KPiBTdWJqZWN0OiBSRTogW1JFU0VORF0gaW5w dXQ6IGtleWJvYXJkOiBpbXg6IG1ha2Ugc3VyZSBrZXlib2FyZCBjYW4gYWx3YXlzDQo+IHdha2Ug dXAgc3lzdGVtDQo+IA0KPiBHZW50bGUgcGluZy4uLg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