Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp671951imu; Thu, 22 Nov 2018 03:43:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vpx/6YOvZmqbFOaUMv+6Zuoe3yLF8RNMUuBlhoi33nMLIppIie7FAUsvp+Fkith293tMlR X-Received: by 2002:a65:6148:: with SMTP id o8mr9745210pgv.451.1542886988715; Thu, 22 Nov 2018 03:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542886988; cv=none; d=google.com; s=arc-20160816; b=a3OhfmxmupRUangJJb/bkG2hqeYZZVbu/LNl5tkiqcf0LcElHPIsrMY/o5ivd8cx8g I2tfCHqiDFDporouIg06lhNZBNm8PqQRLZp14746qcUc1v3OrMlc2aj8mITZV93T3+3o H+kIyvN6TO+bwuayrrn9U2BrUxOIn0YuM7JKBF9Y4P/9YYa3nbYnCdM2idiCJlXKj07A +CrObfFij2GtwPH8zWqDN798kv3dYCI8OvYtW4WvmkOFiZ/28BOIAGhRM7i4v/n3YGR7 Oi/Ul6wM9U0Tak7ROY+PTDfI4CNWnTSOEmjKuP1Bpj5WPIQMy2jUDRZmNG7BmQ9LK7Xq /Zvw== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=dup0O+/FkbmYuThUwhcDoAc0DeK3J0eDEhKEBV9YXyY=; b=hVNKW7DwqechDkRWLVtA2wm14pdJ7uiqM3TlqvBbe5J8RvsBtflsWrullF859n9n6Y HdC3S+sAmbqKQgMyMinKdqplVJ3hwSxmcothNf4j5Hkgwf+3XhOc3SDbH+RATUQ0k6dZ OGVT/PfXYGMc2/bPwEoaxMoOsuT9plt+mnda0pxDStkPV0zSKhKjfm9zWiaEPie9djHC 3Dc8x9rYoCBa5eF7hekKm5SZYid/K9mxSQBPwxyvzhe5L3dPF1WyVTrXNbvYiUTTDwOD lHnSYr2QXjf5bJH60aK7RE91lgdATMB1NTLVLxOgQwxoMuibBdtjU6bxot7E1KAmLZg7 Ds8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=THyxb5Jn; 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 l185si48132252pgd.253.2018.11.22.03.42.53; Thu, 22 Nov 2018 03:43:08 -0800 (PST) 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=THyxb5Jn; 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 S2388689AbeKVL5u (ORCPT + 99 others); Thu, 22 Nov 2018 06:57:50 -0500 Received: from mail-eopbgr70081.outbound.protection.outlook.com ([40.107.7.81]:20000 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728508AbeKVL5u (ORCPT ); Thu, 22 Nov 2018 06:57:50 -0500 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=dup0O+/FkbmYuThUwhcDoAc0DeK3J0eDEhKEBV9YXyY=; b=THyxb5JnnU3vrCpWuR2Zxki93OjCoPqJzxIbPRobuWkT33W+B6knJ2bUcuxhxCSf5jNy4rds+VwioN92bwrTN8Fh1wyeE76fQ2+sZWScgIJtrl/G/jV+xLMeR370HjMQ1RwyJQIH4bTYKWDFtmM6VNGNJ3cxOdD8feOShhTVoSI= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.138.152) by DB7PR04MB4683.eurprd04.prod.outlook.com (52.135.139.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.29; Thu, 22 Nov 2018 01:20:42 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::28ab:d6bc:2c00:a54b]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::28ab:d6bc:2c00:a54b%3]) with mapi id 15.20.1339.029; Thu, 22 Nov 2018 01:20:42 +0000 From: Joakim Zhang To: Aisheng DONG , "linux-can@vger.kernel.org" , "mkl@pengutronix.de" CC: "wg@grandegger.com" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: RE: [PATCH V4 1/1] can: flexcan: add self wakeup support Thread-Topic: [PATCH V4 1/1] can: flexcan: add self wakeup support Thread-Index: AQHUgZY37Zcqeh+WZkOJKhpyijlTpaVaMSYAgADKUhA= Date: Thu, 22 Nov 2018 01:20:42 +0000 Message-ID: References: <20181121122957.2684-1-qiangqing.zhang@nxp.com> <20181121122957.2684-2-qiangqing.zhang@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=qiangqing.zhang@nxp.com; x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB7PR04MB4683;6:mH2WZb1F0ulUE6s7bKYYr/F2lnXiTvO3/SGHVcomNh7uPFmDdBJvfGYKm8FICfbjqAZaOVh71ub2LOaPK08RjMpNbPJvQ3cdyZI2CszjtZmSNrb0xMXhog4Sgb5rbYHyLAS+Egjip7qGTf8m08BVw6ARiyks4nKNvNaddhLRoMB4xkRom+R/xMtKC7blTbSv4OqY1LMZ2iqb5NH91DygA+dXOjb7t+GdG4Z2oAJsNmvJW31YYnvoKycbpMhdIjOi/35PZp0o7rey1sT4SgT+eQMCH9GV4nxAJ1Z3rgWMaJeTC8XiqHsWwBazkDqF8yiSMxB/Fz8PZFPBBMMaWlqkYHDHPgvwPlgNxhKHa2dLcTH+FArlyEbqfroE9m2vfLvgcqq5UdZfqyN5Ix81s2Qir9alZttuVgpogvaNorX/IZLFaDXigAHqpfFMQQssuVwMtiqDzbeH5iRusO7kIEez/g==;5:UG0MEcCaEsOMG3PxBjOCftkoYeXntLo+SxuyFPOHOvEmXb23Qn3dJUbGrnvBAvwVJ4P/2SgRnFLli/o9+r4Uabk8DNwke4pLMFJcqyQs1m3tz6LaEobOLslWPXHTD1giCbNiy9VCs8/mnYiynfMGU2fZmNKra8W1RZS1xW9ZU2w=;7:5c1QdxLMiQUl7svnwSHxTuWPhRYimHHvxAJRA3Zx9bzEnnYyw5t/b+CYm6KfnNhOJmah4uWsH97jJKymcujNF6Nq9cSScMZKX589f8iu478HiseMRKyROBgAn7p0IsX/U4nj/FqJsIhfEFnGc4475w== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: e21111b9-87a2-40d4-7e00-08d65018b884 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:DB7PR04MB4683; x-ms-traffictypediagnostic: DB7PR04MB4683: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231442)(944501410)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:DB7PR04MB4683;BCL:0;PCL:0;RULEID:;SRVR:DB7PR04MB4683; x-forefront-prvs: 0864A36BBF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(39860400002)(376002)(366004)(136003)(396003)(189003)(199004)(13464003)(51444003)(99286004)(97736004)(53936002)(11346002)(55016002)(7696005)(5024004)(14444005)(8936002)(9686003)(102836004)(486006)(256004)(4326008)(25786009)(2501003)(2906002)(478600001)(33656002)(105586002)(6506007)(7736002)(53546011)(81166006)(316002)(5660300001)(476003)(106356001)(6246003)(8676002)(186003)(68736007)(86362001)(4744004)(74316002)(305945005)(2201001)(76176011)(2900100001)(26005)(3846002)(446003)(6436002)(110136005)(6116002)(54906003)(229853002)(81156014)(14454004)(66066001)(71190400001)(71200400001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB4683;H:DB7PR04MB4618.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-microsoft-antispam-message-info: 7RT9v+F7wFOETIITMl8zOmhHvrBDdlaTyZ1DA4fZ1DR2ax25N9uOgb9YVFigi31CbCYA7cBo2+MoHSzK/aNxBPibdnmFsdnCR7ylx4/GhdHYio9bi2BbWWDOIvVpvI8ZTF5XM/SqkO400EBu+tNloYdv3oEcfNlzwdFGSERP44Sdzsbmj+THCm+UdJx9RowyMuPJjNp257cOI1EheXV3gd3hJPpye5ESFla5zcjl/3watTfZqzdjqJNvZrjWluaSV100iY6ugLy3l1uXXf/y8eNfVJDBWH1citj8C4mI2vTIBEDcDbEsKLRCq7+vH78t8A2H8D+bRRAf0CaTtCa/35/tsw/O2j56uocvXTvwbfw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: e21111b9-87a2-40d4-7e00-08d65018b884 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2018 01:20:42.3850 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4683 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQWlzaGVuZywNCg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEFp c2hlbmcgRE9ORw0KPiBTZW50OiAyMDE4xOoxMdTCMjHI1SAyMTowMA0KPiBUbzogSm9ha2ltIFpo YW5nIDxxaWFuZ3FpbmcuemhhbmdAbnhwLmNvbT47IGxpbnV4LWNhbkB2Z2VyLmtlcm5lbC5vcmc7 DQo+IG1rbEBwZW5ndXRyb25peC5kZQ0KPiBDYzogd2dAZ3JhbmRlZ2dlci5jb207IGxpbnV4LWtl cm5lbEB2Z2VyLmtlcm5lbC5vcmc7IGRsLWxpbnV4LWlteA0KPiA8bGludXgtaW14QG54cC5jb20+ DQo+IFN1YmplY3Q6IFJFOiBbUEFUQ0ggVjQgMS8xXSBjYW46IGZsZXhjYW46IGFkZCBzZWxmIHdh a2V1cCBzdXBwb3J0DQo+IA0KPiBUaGlzIG1vc3RseSBsb29rcyBnb29kIHRvIG1lLg0KPiBBIGZl dyBtaW5vciBjb21tZW50cw0KPiANCj4gPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiA+ IEZyb206IEpvYWtpbSBaaGFuZw0KPiA+IFNlbnQ6IFdlZG5lc2RheS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