Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4620311yba; Wed, 10 Apr 2019 01:03:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnwO1RghHgNwaSRDVQ5RSMezMqfQokSh4Yq0bsgcxJIaUq3zHLTBSZ+QvzYZD8n2i3yYk8 X-Received: by 2002:a17:902:9b83:: with SMTP id y3mr40926838plp.165.1554883427928; Wed, 10 Apr 2019 01:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554883427; cv=none; d=google.com; s=arc-20160816; b=kNokbIc9Yo3SygdvZkfRY66Z+YHIHDjuEQ1K3Lru8xJiOvrWZSCrZD7uxKKi9k+rgm DjSapAZMubWszLVpSSB6EV0A5iL6MGmg3rB/yfLGhbKncXbBWgUqZCsEmgyJtPMhl4qZ m/4FVmGi/XBrR6QQdjbqOeZeQxNp3EBNB/94P0Z79kNNgzf/v/ekU4tJRfFD4/xtXXpH 9uFYzfZeY6Sfn/wMyO2hyqSDr1D7oWrK98ZYqcbe4GTutRwTuwe686Qm9wdXvxEzHivc FXo6Xu+ERsuA2Da2p4+LnYfrRUxRwdq+PtPu9wH682ZTePrj7Kd68B/wCBjHfVDp2qL6 QNbA== 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=hO1O+irTek4+YdZxYZN7ZeUK9cjyIvDJDx6Mcm7nc9o=; b=ZMXx7gLuv1Obm3ydYjFABCOgsjCiKK21bAAye/dnNb+TPZn2Kl1QzuI2Ydgvn9h0zs RF3z5N9c8uRl33IAc+HbkYb9LZu046icEcoBcsdAbzpEYAdr0lmPBe/Tcmf+uCF3/rbk as7IBMYm0cWa3MIvtWWPfqLtGayfc0hsJNA3Z1vaOS0SiJWmTA8xdOIWzND1doFxzANk GdTA8ji7VMFcJuXlUBsyoSOT/XQD8xEpD749FJ1HNiTiRKqOHmXfb7DZrki/pTg7fz39 Ssq0ioXKIuRtN4+ZUUq6aF9gcKluqfpDg0P8xPIEmaMJqMNQB1b7jLoXDl31EkJ/olB+ xijQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=A2z+Cv3U; 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 z6si30575853plo.372.2019.04.10.01.03.32; Wed, 10 Apr 2019 01:03:47 -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=A2z+Cv3U; 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 S1729164AbfDJHzp (ORCPT + 99 others); Wed, 10 Apr 2019 03:55:45 -0400 Received: from mail-eopbgr10068.outbound.protection.outlook.com ([40.107.1.68]:17541 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726667AbfDJHzp (ORCPT ); Wed, 10 Apr 2019 03:55:45 -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=hO1O+irTek4+YdZxYZN7ZeUK9cjyIvDJDx6Mcm7nc9o=; b=A2z+Cv3U24teMsXNK6WBVDPIyYiVbR2yJO4JLYX+Wqc9hFPZrF9SE0W4NOK7wXSdfKHo6lUZkWGC2KzP3qLExWyUJJk6XFG1hXa2Wd6oA1dbKiQSQgQB3WBwI6u4zjjoQ3soJEk5GDAAnGStdj1oiPrkq071icCuLGwSpYSwYP8= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.138.152) by DB7PR04MB5177.eurprd04.prod.outlook.com (20.176.236.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.14; Wed, 10 Apr 2019 07:55:40 +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; Wed, 10 Apr 2019 07:55:40 +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+tA= Date: Wed, 10 Apr 2019 07:55:40 +0000 Message-ID: References: <20190410062533.31535-1-qiangqing.zhang@nxp.com> <39d8ef33-50c3-9b7a-88e1-8ef3a7fbac70@pengutronix.de> In-Reply-To: <39d8ef33-50c3-9b7a-88e1-8ef3a7fbac70@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: da1cd9bd-eaf8-49b4-f8b4-08d6bd89ecfe 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:DB7PR04MB5177; x-ms-traffictypediagnostic: DB7PR04MB5177: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 00032065B2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(39860400002)(136003)(346002)(366004)(396003)(13464003)(199004)(189003)(25786009)(86362001)(26005)(6436002)(229853002)(97736004)(68736007)(478600001)(105586002)(2201001)(106356001)(52536014)(6506007)(71200400001)(186003)(76176011)(102836004)(5660300002)(71190400001)(53546011)(66066001)(2906002)(14444005)(256004)(446003)(9686003)(6246003)(11346002)(7736002)(8936002)(476003)(53386004)(33656002)(966005)(3846002)(486006)(8676002)(2501003)(110136005)(4326008)(54906003)(6116002)(305945005)(55016002)(316002)(99286004)(6306002)(81166006)(81156014)(74316002)(14454004)(53936002)(7696005);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB5177;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: 8+WRICvnX7bNcUjFNmwLTV2uJ5UieQqVh2+aRJccHKrMabRvsBTZmTa2uN8jlUKGYcAWID3Ys7YJrnn9uApbFKT1AlVFZR6Chv2gnLkHOonuFG7euVNwj5kpMn+ZJ0su2Mq9f5OsL9rTl4AOKcPmwnuFRvGKJqb9TxR/2KZi3ptYcJWWg0eoFt5Gso5sxYHl0a8nAyp9b6ZlHTa66jzbI4/o+7MofSDsX2VBGcrY6nUlDBit5aQPPdLgdIPGwKRLKbFwEA4EdzTGz8SjTkXAWCLFuh8jalT1NKF2Yicjw9HSZvv+JatzH9XzU4j/XMBxVjpBZrwZa1TDI5UEsS3bxTCx8Y9OfdZq+/qCSiyV8GC0nalyOdR1Dd63b8OalrxDbAeEa+LhjclrS2ATz1JXpxWSYcGc+UIyspTeKg0uNEk= 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: da1cd9bd-eaf8-49b4-f8b4-08d6bd89ecfe X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2019 07:55:40.2384 (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: DB7PR04MB5177 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1hcmMgS2xlaW5lLUJ1ZGRl IDxta2xAcGVuZ3V0cm9uaXguZGU+DQo+IFNlbnQ6IDIwMTnlubQ05pyIMTDml6UgMTU6MTkNCj4g VG86IEpvYWtpbSBaaGFuZyA8cWlhbmdxaW5nLnpoYW5nQG54cC5jb20+OyB3Z0BncmFuZGVnZ2Vy LmNvbTsNCj4gZGF2ZW1AZGF2ZW1sb2Z0Lm5ldA0KPiBDYzogZGwtbGludXgtaW14IDxsaW51eC1p bXhAbnhwLmNvbT47IGxpbnV4LWNhbkB2Z2VyLmtlcm5lbC5vcmc7DQo+IG5ldGRldkB2Z2VyLmtl cm5lbC5vcmc7IGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmcNCj4gU3ViamVjdDogW0VYVF0g UmU6IFtQQVRDSF0gY2FuOiBkZXY6IGNsZWFuIHVwIENBTiBjdHJsbW9kZSB3aGVuIGNsb3NlIENB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