Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3551111imu; Sun, 11 Nov 2018 17:49:44 -0800 (PST) X-Google-Smtp-Source: AJdET5etfWa/+xEMk/2DUiMc1NMRXUyoFg9yqHqxiAP5Rkq/FGTfRjjd6Not+igJpe+BABjikG/p X-Received: by 2002:a63:3f44:: with SMTP id m65mr16148707pga.115.1541987384191; Sun, 11 Nov 2018 17:49:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541987384; cv=none; d=google.com; s=arc-20160816; b=Vuv5W5ZmmqV2mzvMAkCSkPwqP5mdEFu5RJYgqOo6HUSXTy4RXGD/TvIzMsgE7ejLvd Cgsksp2iwVlGLEA5kFTtAklwEn7WrvxCdtYqTmGQJTJ1XRzPJovdAOCrhBRpl123C096 NQlmLUSY9jC69P1R6fh8weycjAsQ6QWxJ5yATGZuqfMoKoSci0HtNBXMTM2UXRt42TcJ UBmoDNSk1XOjNHBYDwz8wfgVXGZ/EL4Spt9HKnJauYluowSxiQOaQeKuvEc8FilVCAr5 I7QtILTkh0XUfPj1jMFX7lNKl2q35hsXbrBMRrDHJ+Ef0mzOKTxVUPAINSAfFp7e+FNS 4tbA== 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=jKHx6jXRRsk8E8efAV5soLpxrhSISlGM9uFgIgGaR1E=; b=GhNvQkjRVQXRbVMvvgF88j+3dPAmSm+DfDjZUK/slMTSoG/duz3eWA9YHWkypeMlCo GZP6FF7/shvHTGEgBIyuzejah9NTKrapsvjTdq2BLjuCGriD7bHuFexIm1XkD1vnJdRN QPDhdvovCRJnpZBvgltnvzMYDJ1MiCnG9EP+rwICT+gEmBbllt3FUK+OpHQzjZSuBQCP CE1w2PQXbTuhVi1lQDrQH8bxcBTt/MdjoHWMiq2DD7TwyF0j6lxaFlWxf2K1OoI2hs+3 U4JOycNfOiiY6CNqImRcthnprHhE27KuS+IZam9wiWZz2e27WuH/eoKp/BTaQjGh35QA pbCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=YkgdPQyw; 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 d37-v6si15716670plb.167.2018.11.11.17.49.28; Sun, 11 Nov 2018 17:49:44 -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=YkgdPQyw; 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 S1729969AbeKLLia (ORCPT + 99 others); Mon, 12 Nov 2018 06:38:30 -0500 Received: from mail-eopbgr30042.outbound.protection.outlook.com ([40.107.3.42]:44057 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729529AbeKLLia (ORCPT ); Mon, 12 Nov 2018 06:38:30 -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=jKHx6jXRRsk8E8efAV5soLpxrhSISlGM9uFgIgGaR1E=; b=YkgdPQyw4AtO3tReiX5uqc4gvepPsXra/wXMHV8cE6N7YfWeAd4qs3KodN3XzF4kivFocDuhRY70UkFGErJ3LV6XhmxL99ZBoXhRYBmQtzvpal3fEEteZG7Q5hzP79G6xrhfc6VvuXZfTf1NYlwbGZ+/dBnXYOMt1QvvnOS7q4U= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.138.152) by DB7PR04MB4875.eurprd04.prod.outlook.com (20.176.234.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.27; Mon, 12 Nov 2018 01:47:31 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::51ba:96d4:721e:f6a9]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::51ba:96d4:721e:f6a9%5]) with mapi id 15.20.1294.044; Mon, 12 Nov 2018 01:47:31 +0000 From: Joakim Zhang To: Marc Kleine-Budde , "linux-can@vger.kernel.org" CC: "wg@grandegger.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "A.s. Dong" Subject: RE: [PATCH V2 1/2] can: flexcan: Add self wakeup support Thread-Topic: [PATCH V2 1/2] can: flexcan: Add self wakeup support Thread-Index: AQHUbQpba0Y0q2AWAU6Po+m2Y8KW1KU301qAgBOjhPA= Date: Mon, 12 Nov 2018 01:47:31 +0000 Message-ID: References: <20181026085814.23370-1-qiangqing.zhang@nxp.com> <20181026085814.23370-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;DB7PR04MB4875;6:tjrbmOrAgkTzAcyxG68mYWurqNbTRazAOFBDYZukdHXtW826C8RyBAZHQ+2TPuQLxUwTyj4zT2mKucVACOTk2VXYCmjMVQJcT6gD0FnLVVsmV/gelhj81jCFWhGxD3tJGD3FmpN1+DR/2VqSphEhJCRZpqfiTqfHYgvQyVWQ5RX96fb6Pcoc8QdQYh/ANehfzW/HBo4/oDQ85Mkj2Hw7LEGw+Vv6nyp/sDYFfhL0A2YdliYk2cV1BJZcprUvtEjuS8Jy8ABxBRRiBD5SCr5Dsbw8kTu18SMOSfmMX+OQzhefa4JHt+9S8KdPW1M98Ue/YgjaGxubV0cI+cJ0uuuKRFhunz0ozaYHkIwQzb22HySjWyzpssEEZ2SYOI34I+8rfRwh4jdWZy+99sHy830BMAae+Yf40s0YTC5LoJ6ZpFMrQ8YPHu3+2Dwpxeg5+SqUDCAeQUuuhMZiHGbsRtf3kg==;5:dvRjJ+r32ZiiJaPbc/FFDAdlsob8OY/fehLTOO4tIKvq658676XWkSUx4mGHpGdWFsPMAsAjeeK+I7qVhiJFbIXAAfqZhUIig1c1/DZEn3GUvbLqEultW11EIksIQMnF0BqkIOCt6P3ym2YpJfsye01isQKJ/ee54ocLlFnG+Vc=;7:TJd4WQE96dqDar6LQ9yWf58BuEfx05+JzFI5TAvYwVpKPsu7r5nl6hkrEVXzPIyq72Ksx9n6RKtK0mfb97a3GlbHZ5kfuNKNxaubW8DDWZa/eG8CP+ydQEfMIfLWyK1tfIkqLL0OXWq9nd61bj3JbA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 6fd32e39-89bf-4abe-b206-08d64840cf81 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390040)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB7PR04MB4875; x-ms-traffictypediagnostic: DB7PR04MB4875: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(180628864354917)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231402)(944501410)(4982022)(52105112)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:DB7PR04MB4875;BCL:0;PCL:0;RULEID:;SRVR:DB7PR04MB4875; x-forefront-prvs: 0854128AF0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(376002)(346002)(39860400002)(366004)(136003)(396003)(199004)(13464003)(189003)(55016002)(2501003)(316002)(6306002)(9686003)(6246003)(53386004)(66066001)(186003)(7736002)(97736004)(5024004)(256004)(86362001)(53546011)(26005)(6506007)(53936002)(102836004)(54906003)(14444005)(110136005)(6436002)(7696005)(99286004)(106356001)(305945005)(76176011)(81166006)(2906002)(2900100001)(105586002)(71190400001)(71200400001)(14454004)(478600001)(25786009)(446003)(486006)(33656002)(476003)(11346002)(5660300001)(8936002)(74316002)(6116002)(966005)(3846002)(4326008)(68736007)(229853002)(81156014)(8676002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB4875;H:DB7PR04MB4618.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-microsoft-antispam-message-info: MtPtusrXCalvpebVvu8pKXwOt1anPvrYHEf/LxXxjdYmCEC0KYkU82+Xu7q14axbvUZDP8P6m10fJrnTakWgYEclqGdzgZ/UlAiu2H5k035gjRytu++z3O/pZScMoczN3ram9vRhTwdcJowcNDdyC7cjwJLs6Xg2kVqT15MkTm0QUaMnQlXNEl5UCkvVbzKSR0Jzl0B1g/r9Yxn5b9kYsNu6dVuLXj3oDHvs8PgIzlR4TAoqPW24u2dTHI43E61YwA1HDk1+BLIj1DuC79a0Two8RsqvI3y3cSvM7rT2Va487pUEtxPm8Mc9UY1kqkNIeWnYNs1qhmA0M93WRqfYGd4/9S9s3if3cNNFSlmWcN4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: 6fd32e39-89bf-4abe-b206-08d64840cf81 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2018 01:47:31.5023 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4875 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1hcmMgS2xlaW5lLUJ1ZGRl IDxta2xAcGVuZ3V0cm9uaXguZGU+DQo+IFNlbnQ6IDIwMTjlubQxMOaciDMw5pelIDIxOjQ1DQo+ IFRvOiBKb2FraW0gWmhhbmcgPHFpYW5ncWluZy56aGFuZ0BueHAuY29tPjsgbGludXgtY2FuQHZn ZXIua2VybmVsLm9yZw0KPiBDYzogd2dAZ3JhbmRlZ2dlci5jb207IHJvYmgrZHRAa2VybmVsLm9y ZzsgbWFyay5ydXRsYW5kQGFybS5jb207DQo+IGRldmljZXRyZWVAdmdlci5rZXJuZWwub3JnOyBs aW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnOyBkbC1saW51eC1pbXgNCj4gPGxpbnV4LWlteEBu eHAuY29tPjsgQS5zLiBEb25nIDxhaXNoZW5nLmRvbmdAbnhwLmNvbT4NCj4gU3ViamVjdDogUmU6 IFtQQVRDSCBWMiAxLzJdIGNhbjogZmxleGNhbjogQW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