Received: by 2002:a17:90a:c8b:0:0:0:0 with SMTP id v11csp2340342pja; Wed, 10 Apr 2019 18:18:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTa5dI+ArL3/DgtVFTFByKcd3GQco0sgwKbZpwiAH3G/olMNDQTm6wm/s/McbJ3imAgC4a X-Received: by 2002:a65:6284:: with SMTP id f4mr44530384pgv.11.1554945507711; Wed, 10 Apr 2019 18:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554945507; cv=none; d=google.com; s=arc-20160816; b=IF3ieTiFKfiQCGbW3GSWix/L2h46K+X/F3NLFT5TY+CfaX9s/sNNLhIlvNzRRLTTFa RFWYe3SWgHpVP8CwEl9dch6xrnM62MawWdfT+MPzs8lMw295L0TKV9pDCXnTlGK2r1/G ZD0+H7aefEyoTGkOo+decHdVmhU0Ywou5zRF+C/mBzDZ0XKcUYpkIjIsF1EWEsg7Hcr0 jWE4cpeCtz2GB8AY/DJWffgvt/3tnreOCpsoKVI/ATmWxZezHD3Xxim+BJljRQteNh+2 sx/pZAzGX2cZ4c374i6ix1R+ZVJ72EQZVCwjnO2CjgM7/B7is8X+gTq5yEyQXakWDGaV Eg8g== 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=LfPl2yAmCkuUGLOAjANldb9z7jPx5iKG36ByPXra9FQ=; b=q223W/XSuhsH6iBldhyTnpVqixus95S1nymL8H74cdusv5fO1lgwDoBBOKghlTYSeg a1JerVgKtpiG6mZpAnEJE6C6YJHNqtyrUMC0sj4o7PXnFI947N+A8B8EO3JphjPn1BFo fT+c6HNAhHr4fvOBFwhzCG+Feoc8DdKWPw1bHrwo2cAM+IDn+URkR+RQ2tzHv76ATDM5 MqtBweuj+YreYui3RkDyhO4G8AcauCWzWoq9cUkQIv2GjXbC8/gat8Dv4E33JvVdCFjt Ualk7Q3wWZDPLxWrxmyUm0fOW6eklcQxfKfUrqSvg6U3cHCCGZV1coTxKSHqdMRg02a4 psrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=IGLl0lvS; 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 j8si14960430pfr.47.2019.04.10.18.18.11; Wed, 10 Apr 2019 18:18:27 -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=IGLl0lvS; 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 S1726813AbfDKBR2 (ORCPT + 99 others); Wed, 10 Apr 2019 21:17:28 -0400 Received: from mail-eopbgr80051.outbound.protection.outlook.com ([40.107.8.51]:62769 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726181AbfDKBR1 (ORCPT ); Wed, 10 Apr 2019 21:17:27 -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=LfPl2yAmCkuUGLOAjANldb9z7jPx5iKG36ByPXra9FQ=; b=IGLl0lvS7sBBJVVvtiw6vkzH+aaHs2miwRxifyQ4doAQWd9PTXy1kr6d1eRpJVpJB5KWtRx9tH0fKXXr+xlu+5Yg+dcpfNMCmJhkHxV3IL3iIOBxotGX0LcA7DCv7wyS3BkQBarD1ETJ9IgtRocklEsqv3UbD1xRG2AgK2mwcKU= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.138.152) by DB7PR04MB5401.eurprd04.prod.outlook.com (20.178.104.142) 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 01:16:43 +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 01:16:43 +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+gIAAeBjg Date: Thu, 11 Apr 2019 01:16:43 +0000 Message-ID: References: <20190410062533.31535-1-qiangqing.zhang@nxp.com> <39d8ef33-50c3-9b7a-88e1-8ef3a7fbac70@pengutronix.de> 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: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: be0b784d-4ec6-4cae-bfe3-08d6be1b5be4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DB7PR04MB5401; x-ms-traffictypediagnostic: DB7PR04MB5401: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 00046D390F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(346002)(366004)(376002)(136003)(13464003)(199004)(189003)(476003)(71190400001)(76176011)(305945005)(102836004)(52536014)(5660300002)(7736002)(6506007)(53546011)(14444005)(74316002)(508600001)(2501003)(186003)(26005)(66066001)(7696005)(99286004)(486006)(446003)(11346002)(105586002)(110136005)(2201001)(106356001)(97736004)(33656002)(68736007)(71200400001)(54906003)(25786009)(256004)(93886005)(4326008)(316002)(6246003)(53386004)(9686003)(55016002)(966005)(6306002)(53936002)(14454004)(6116002)(229853002)(2906002)(81166006)(81156014)(3846002)(8936002)(86362001)(8676002)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB5401;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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: rGFPRGjDMHf7WfQKhvOBslpUs8E3FYaaQIGI1uU+M+eGDrz0WE9ovOk5AY25jaUy8eVCF9YYu8rcqDRzSTQuhfbLqSqEV/KIFecZSuAkFLe+G7mXjaNKzhg6yDTlAMxDvxe+V/DVik+FuZKT0903cLjKbMUw4//8jCBfxPEBq06DDBxhOvgvVOzepCfodORNGVMeE61xZ9DkyF17r1LH3vrOafDtNMXUmUIaWMZo8b5UJ7H0CftOd73XjsaaIsNQHdRqvJKqXct/5S0FPaLUfj9FjsiwrMfS0/lFo1qa5+6SL8olJci7ABm2QMx0Pk2uTJvnVjLjfvnioOLhV9InX8Ig2WmJtWM/4QhLolICd29JlYU5T8hWgxSnHq1nGU9r1yBWlASc3E2SZxnqw/4iDX4wgBIZkvtG/K3LuFgNP/M= 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: be0b784d-4ec6-4cae-bfe3-08d6be1b5be4 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2019 01:16:43.3895 (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: DB7PR04MB5401 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1hcmMgS2xlaW5lLUJ1ZGRl IDxta2xAcGVuZ3V0cm9uaXguZGU+DQo+IFNlbnQ6IDIwMTnlubQ05pyIMTHml6UgMTo1MA0KPiBU bzogSm9ha2ltIFpoYW5nIDxxaWFuZ3FpbmcuemhhbmdAbnhwLmNvbT47IHdnQGdyYW5kZWdnZXIu Y29tOw0KPiBkYXZlbUBkYXZlbWxvZnQubmV0DQo+IENjOiBkbC1saW51eC1pbXggPGxpbnV4LWlt eEBueHAuY29tPjsgbGludXgtY2FuQHZnZXIua2VybmVsLm9yZzsNCj4gbmV0ZGV2QHZnZXIua2Vy bmVsLm9yZzsgbGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZw0KPiBTdWJqZWN0OiBSZTogW0VY VF0gUmU6IFtQQVRDSF0gY2FuOiBkZXY6IGNsZWFuIHVwIENBTiBjdHJsbW9kZSB3aGVuIGNsb3Nl DQo+IENBTiBkZXZpY2UNCj4gDQo+IE9uIDQvMTAvMTkgOTo1NSBBTSwgSm9ha2ltIFpoYW5nIHdy b3RlOg0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