Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5593901yba; Thu, 11 Apr 2019 01:15:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwy/3W8hG/s5/n66fxJHzXI9NJws3jk4ODDTwPsKHNh+Tghduissk7AiUw3Xehm5VYfkgGQ X-Received: by 2002:a17:902:6bc2:: with SMTP id m2mr25364365plt.194.1554970526440; Thu, 11 Apr 2019 01:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554970526; cv=none; d=google.com; s=arc-20160816; b=cG6NYpG9y3avPLmHTA+KJSd770HiuQcE1A3w7P2RRbiPRGGCuv3tU+BJX5cmRKwkXd xjUzn0BP3dBOIDA/Ppty2OozcJlKKtR+enbxR9+re58gw3GpnBY45gLV0jbvHABj52iX ACEN1/TwFhK0Y04S/3iWyDJ3RYpUMlKlRy7Q6lJMeD64YzNZuJDBSUs1HoVpmKoUikbC ynlSxs+iKypmaAU10wmwRZR+iG5kGExjc4cqzlFtCBksVME2iTpfdTp1YMtMd/BahdRn FttLPMbYPMHrAbANtUmI3OfUyrK/hsLoViRc0eatfjsBw5UU6mKFxxUZr962KdNWobZg 7yGQ== 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=uF3dHjpwJx1lqRcZ7cWajhKmeRQAzC/zjwGMipU/J04=; b=ix0H+7Lc1Y+hO7MuDIbcpI2ubRTiTIQERdrrWTLlEKEe9CbCeDdoVlRQDYVcG8atf/ 0wcQnhTSieneCAOqywQMsqO2XZBQeCCohc6ePu6XOVL8PtrNkGNYDbGhWO0oGzTDEt9X XoLTsK89awCbNXXPSIvsHTbZSe299ChqX13Ov+tK3d2L+i9hq4NMCbZFHEa2wMtkXPu5 uZYec3QnNOleG97/feMht+318E41MV97P7jC0rSFA3RoTEKGTd2oveATaYo6+pYplpTF LfNCpJgxUcpNdZYDRYEh+zbiNkQT0YmsaLKueZJl3ewF8RY6nuwhr1vnq3hu2WNvZtC+ ESvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=b8AoaIfO; 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 d9si30147031pls.12.2019.04.11.01.15.10; Thu, 11 Apr 2019 01:15:26 -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=b8AoaIfO; 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 S1726757AbfDKIMz (ORCPT + 99 others); Thu, 11 Apr 2019 04:12:55 -0400 Received: from mail-eopbgr50045.outbound.protection.outlook.com ([40.107.5.45]:34176 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726121AbfDKIMy (ORCPT ); Thu, 11 Apr 2019 04:12:54 -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=uF3dHjpwJx1lqRcZ7cWajhKmeRQAzC/zjwGMipU/J04=; b=b8AoaIfOjDVlX+GpG8KDoVXnDnnTopAR0vqTjMEaLRvEmx3xQt966OrmY2ITSw+16m44AkSDXVWJIESVaRy62xJzqZEj4UYJlf4HO2VEamneo5A7FCgfnUZpTVSRKpZ2p7ygZ0cgvd4FW+OQ9cDTx+doMPV1oRANE4Tvgf6LpxM= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.138.152) by DB7PR04MB5948.eurprd04.prod.outlook.com (20.178.106.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.16; Thu, 11 Apr 2019 08:12:10 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::99f0:f8da:a123:e25]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::99f0:f8da:a123:e25%3]) with mapi id 15.20.1792.009; Thu, 11 Apr 2019 08:12:10 +0000 From: Joakim Zhang To: Marc Kleine-Budde , "wg@grandegger.com" , "davem@davemloft.net" CC: dl-linux-imx , "linux-can@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [EXT] Re: [PATCH] can: dev: clean up CAN ctrlmode when close CAN device Thread-Topic: [EXT] Re: [PATCH] can: dev: clean up CAN ctrlmode when close CAN device Thread-Index: AQHU72Z9hNDj4CvO1EGET8+N4jv3IKY0/IsAgAAH+tCAAKg+gIAAeBjggABew4CAABnCkA== Date: Thu, 11 Apr 2019 08:12:10 +0000 Message-ID: References: <20190410062533.31535-1-qiangqing.zhang@nxp.com> <39d8ef33-50c3-9b7a-88e1-8ef3a7fbac70@pengutronix.de> <35c15351-5ae1-0826-1b05-95fe53272244@pengutronix.de> In-Reply-To: <35c15351-5ae1-0826-1b05-95fe53272244@pengutronix.de> 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: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f1674e0e-21ef-4f9c-e629-08d6be556582 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB7PR04MB5948; x-ms-traffictypediagnostic: DB7PR04MB5948: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 00046D390F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(366004)(136003)(376002)(39860400002)(396003)(13464003)(189003)(199004)(7736002)(102836004)(476003)(446003)(486006)(11346002)(7696005)(6436002)(53936002)(97736004)(76176011)(6246003)(71190400001)(186003)(2906002)(14444005)(53386004)(106356001)(74316002)(256004)(6116002)(3846002)(105586002)(66066001)(71200400001)(9686003)(6306002)(26005)(53546011)(6506007)(55016002)(305945005)(52536014)(99286004)(93886005)(14454004)(5660300002)(25786009)(508600001)(8936002)(81156014)(68736007)(966005)(86362001)(2201001)(229853002)(8676002)(110136005)(81166006)(2501003)(316002)(33656002)(54906003)(4326008);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB5948;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: XwAgJlK4P5JjRdBDZZ9XQ2KFybhL01bLypLyXOIJ7UDi5EI2JSy1hT4t9GyJQBOOB2Jgp+s/jlKR+W1TNEd7shq/wiIOqjL///8FUqYPKyeKuy9ihtGXcWs/EQOOMfj5d59P6cOWEw7gbSOrnKU13Fj1WUbHhXskks19coayy1ZKlLHPAhzqeX9QBAXbwjHhxxn23kaviwar2uzl149fuTbp5bckSHuNurKjlXFalAFeAIeUKzjsf8Dmyn5FJe7rfeHF0JGfrUQpjBLISfWEEgRkX6i69u784lsvi5WtIwlPHqA6z6eh/wSE0lndqJFEIsL9XC9JC4o0uqb3hVsLdls8WGkTfKUB6pBG4B5k9+48E/Ln0AIvx2iv2hi84dNjGojZaJmjFv0oUOO7cd8Ibak5rRVTEg3BUxjRZwe6Qsc= 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: f1674e0e-21ef-4f9c-e629-08d6be556582 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2019 08:12:10.3288 (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: DB7PR04MB5948 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1hcmMgS2xlaW5lLUJ1ZGRl IDxta2xAcGVuZ3V0cm9uaXguZGU+DQo+IFNlbnQ6IDIwMTnlubQ05pyIMTHml6UgMTQ6MzkNCj4g VG86IEpvYWtpbSBaaGFuZyA8cWlhbmdxaW5nLnpoYW5nQG54cC5jb20+OyB3Z0BncmFuZGVnZ2Vy LmNvbTsNCj4gZGF2ZW1AZGF2ZW1sb2Z0Lm5ldA0KPiBDYzogZGwtbGludXgtaW14IDxsaW51eC1p bXhAbnhwLmNvbT47IGxpbnV4LWNhbkB2Z2VyLmtlcm5lbC5vcmc7DQo+IG5ldGRldkB2Z2VyLmtl cm5lbC5vcmc7IGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmcNCj4gU3ViamVjdDogUmU6IFtF WFRdIFJlOiBbUEFUQ0hdIGNhbjogZGV2OiBjbGVhbiB1cCBDQU4gY3RybG1vZGUgd2hlbiBjbG9z ZQ0K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