Received: by 10.223.185.116 with SMTP id b49csp1131368wrg; Wed, 14 Feb 2018 12:06:49 -0800 (PST) X-Google-Smtp-Source: AH8x2276BKdNQ+3UHFF9TJ24CY7SjpCcAhkN9LUVFp7sMSVeQUg2MDvdIfFXAZLGA89MuaeXJFVm X-Received: by 10.98.10.25 with SMTP id s25mr212745pfi.137.1518638809647; Wed, 14 Feb 2018 12:06:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518638809; cv=none; d=google.com; s=arc-20160816; b=DqjGpApCqEilT5D127h3VDIDMfG/rO66I3EJYdQoP8b/ZcxJdgwoIhB8CzuAl4sMxZ 609gwWniQ3TTWPqg3aPTPFPJcA1zfeqapG63a1OiD8WkABYFQGgwVrF+iW5gQPP585tJ +9fRlD43yDpfAVjhengFYh98zDSKe6ov0F6nqWWNWickPS2a0MkTAp7peFVDuwz8S/Sc 4G96sDuJESDwDDvRhsL+G3IXlY/ahRrH0sv/cD8wiET7u3UTJWkiHOOGHhMHSpUFhNBT 0G7iIaIgljNuriXx1GRjszXSRqvLviCN3JvM3McAG7vbqbZ/NfuQ1fEyBTcNJAFV5o8X qLZg== 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-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=DWRHOMcNpPs99KadzArMoig+1PE9ERsjC4A8d+xkkks=; b=Lk0HB9Mp/YRaCd2EXmF/yz6hnyUM/rvDleFRKe7K0DjlBIdQ6sX3A1hWHjU4lzJijK 07bP0tWzjb5FTA+NfWst4a61oGDcsvHxO751IKiDFFrFNpZG2lfnvSAE/pOtNlE6DZI7 ShqqSMLpXDhoOO54WSqQjfSLzhuwMLgaYM2yp4gQXjYWK2rfJU7tCipyz3RCLwddJwRK GDSFcuBxqoBsILzW652l09iI5/Z8RqZ/3KPUMj8YV9zvTw4yCSUU2S83q1PXlN2pnEYX 5AT0+vy0DZr/rh2FR9IGqZyNF6rkoge/kp6OQk2TWcneW96XYEyMcp+x0vT08klU0VpS 9XRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=IKPDsvAQ; 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 v27si5634869pfi.191.2018.02.14.12.06.34; Wed, 14 Feb 2018 12:06:49 -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=IKPDsvAQ; 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 S1032555AbeBNQ2o (ORCPT + 99 others); Wed, 14 Feb 2018 11:28:44 -0500 Received: from mail-eopbgr00048.outbound.protection.outlook.com ([40.107.0.48]:48960 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1032444AbeBNQ2l (ORCPT ); Wed, 14 Feb 2018 11:28:41 -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; bh=DWRHOMcNpPs99KadzArMoig+1PE9ERsjC4A8d+xkkks=; b=IKPDsvAQzh1pvksQk//BNBAM5rbxLJfL/c+9S/iAqY4GKc6qAtYA4/70ePG27LbMl5YeEjqmetO0Ut0wX8iLZAlMKOBx7uAzqOFNWp+RsEI0yMdiOHA0EAo7hvf2aKA1eBkLX8JvgZRXKmIg4VNoM9biweiIqBymYRmAgyhBFy0= Received: from VI1PR0401MB2221.eurprd04.prod.outlook.com (10.166.44.10) by VI1PR0401MB2383.eurprd04.prod.outlook.com (10.169.134.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Wed, 14 Feb 2018 16:28:37 +0000 Received: from VI1PR0401MB2221.eurprd04.prod.outlook.com ([fe80::585a:80dd:78d:f7fd]) by VI1PR0401MB2221.eurprd04.prod.outlook.com ([fe80::585a:80dd:78d:f7fd%13]) with mapi id 15.20.0485.015; Wed, 14 Feb 2018 16:28:37 +0000 From: Han Xu To: Stefan Agner , "boris.brezillon@free-electrons.com" CC: "marek.vasut@gmail.com" , "richard@nod.at" , "dwmw2@infradead.org" , "cyrille.pitchen@wedev4u.fr" , "max.oss.09@gmail.com" , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2] mtd: nand: gpmi: add support for specific ECC strength Thread-Topic: [PATCH 2/2] mtd: nand: gpmi: add support for specific ECC strength Thread-Index: AQHTn3GUbk+2oAMyxkafCnu56MqD3aOkIwSA Date: Wed, 14 Feb 2018 16:28:36 +0000 Message-ID: <2f28681f-c261-31f7-9f93-602f50109343@nxp.com> References: <20180206174021.5947-1-stefan@agner.ch> <20180206174021.5947-2-stefan@agner.ch> In-Reply-To: <20180206174021.5947-2-stefan@agner.ch> 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=han.xu@nxp.com; x-originating-ip: [192.88.168.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0401MB2383;7:nb2ZHqhdLyT0kB3rl94jncLkV0so7gqJ1ddRTSDmOGjDhFOM9plNeAcH37SwX3X9mu/IYXPUG92hHOFsxUEOJlAhrNPvnrLptgPo05g5TcM2avTshwxIhwIJyxbKCO5jR1Pii1IVDx4abaodD7w0ImRvBkkuz6k5j7vaAWKORWs34tDLSYtBlqQOuY1uPcLdRAb6QDVcoSlyHUpnyfhdpjHeWx5A7DqMpTIKo/9HcCEI+zvkgu7CCZohoXwF4iBx x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 478ccdcf-bc2b-45f0-9323-08d573c80016 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020);SRVR:VI1PR0401MB2383; x-ms-traffictypediagnostic: VI1PR0401MB2383: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231101)(2400082)(944501161)(3002001)(6055026)(6041288)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:VI1PR0401MB2383;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0401MB2383; x-forefront-prvs: 0583A86C08 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(39860400002)(376002)(346002)(39380400002)(199004)(189003)(2906002)(5660300001)(25786009)(26005)(39060400002)(6116002)(3280700002)(53546011)(3846002)(102836004)(106356001)(6506007)(2900100001)(7736002)(8936002)(305945005)(31686004)(36756003)(2950100002)(6246003)(3660700001)(105586002)(81166006)(81156014)(31696002)(8676002)(478600001)(4326008)(76176011)(6512007)(229853002)(6486002)(14454004)(5250100002)(2501003)(53936002)(66066001)(86362001)(99286004)(316002)(6436002)(186003)(110136005)(97736004)(68736007)(54906003)(71600200001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2383;H:VI1PR0401MB2221.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 1HRW8u3bnRQxp2Cq09l5pxFoQkxcTuu1TANgUbQX7pePuPOBFlgGx4EqIbs+jXy192uqOSl/OwUGvXSyixd+Bg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 478ccdcf-bc2b-45f0-9323-08d573c80016 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2018 16:28:36.8832 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2383 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDAyLzA2LzIwMTggMTE6NDAgQU0sIFN0ZWZhbiBBZ25lciB3cm90ZToNCj4gQWRkIHN1 cHBvcnQgZm9yIHNwZWNpZmllZCBFQ0Mgc3RyZW5ndGgvc2l6ZSB1c2luZyBkZXZpY2UgdHJlZQ0K PiBwcm9wZXJ0aWVzIG5hbmQtZWNjLXN0cmVuZ3RoL25hbmQtZWNjLXN0ZXAtc2l6ZS4NCj4NCj4g U2lnbmVkLW9mZi1ieTogU3RlZmFuIEFnbmVyIDxzdGVmYW5AYWduZXIuY2g+DQo+IC0tLQ0KPiAg IC4uLi9kZXZpY2V0cmVlL2JpbmRpbmdzL210ZC9ncG1pLW5hbmQudHh0ICAgICAgICAgIH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