Received: by 10.192.165.156 with SMTP id m28csp1181556imm; Fri, 13 Apr 2018 14:58:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx48NXBbfYmvDbSOgNeR8yobalVEh+1buWD1+uvJ1S2lpeNUnAsEXn78GbxKnJiF2UkI32X3Y X-Received: by 2002:a17:902:7e46:: with SMTP id a6-v6mr6696047pln.61.1523656728522; Fri, 13 Apr 2018 14:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523656728; cv=none; d=google.com; s=arc-20160816; b=Qj+ib2uYXjnqM+HpXby78SQoCpalCSknLs+Q1AEbG0WK/FIMV0LAOBHhqKluXLFyEc VENBn0WP+mwkkXce7gpa7PT+U7Gqmss6Zu8IAIgTJHksuN7xr2Y04g9zPrjQ8ZNmxBbF CJo6n51Kh89AVuJUBofTELqedx8OEP/cT5akM9uodMAjMhWH/q+hsRYteMRZGVP9PaWD eeGEYfM/QwzIurKREbxyvQVhsZwfHtbebnXVZiUhfOz3darcH814EHYE2OzEJlpS/ao/ bZigpOc+gzZiHgSirpQrzTmOk03Qy1kSRadgZVV3ta5oRUat8jUF2+ai8zEGbftEK2Sy onhw== 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=HX7rqNuwCazXl+qHxG2uVeb9aXmlelMi9bRtG7Q6uHs=; b=lg99NnhyXXd9l2ku2P6WFgmaIg9Aijg1BH47E0wQMPBh2tf0zJRCMVgJW3omc26xqb 3irnGYkq13YUTUMJTHhbh3Xd497s0kRydtajJKrYOa2gsEQ156LLuj7tmljbh5j/LpPT SosddDXPSr2BHm5Q6tPcGteUL3HZ0ODQ5B7QmFuMB8+dko1XTRpm/Vj3TOgHcsHn7XD0 yXxLzGTwUAQP9InGWphwvPU8raE1rxaiEGW1KZhSv0/GslsdeFghtmUNedFRpA5lVCuy AUC/Zou3Ix+dTjzQ6x55GQ2H1KZbI34ol+9MCz9SHwYu6PnibB0GABr2H7veuf1FC3kg uIVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=HI6tiuC2; 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 f32-v6si6661089plf.415.2018.04.13.14.58.34; Fri, 13 Apr 2018 14:58:48 -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=HI6tiuC2; 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 S1752172AbeDMV53 (ORCPT + 99 others); Fri, 13 Apr 2018 17:57:29 -0400 Received: from mail-db5eur01on0065.outbound.protection.outlook.com ([104.47.2.65]:39160 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751042AbeDMV52 (ORCPT ); Fri, 13 Apr 2018 17:57:28 -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; bh=HX7rqNuwCazXl+qHxG2uVeb9aXmlelMi9bRtG7Q6uHs=; b=HI6tiuC2NiG9ML2fgDk7iy3p1oPK/WFTRtEHI+8b8meRLRm5JedyMjbrh1hMB8IObp7hBlbwA3pgixb5M1bkvSFOtFMoDCM1CalNDlpzOpfc1Q10dZi8eA6IedvDJ9lOppUE8j3dZ4p1EabVADN5fhhKNXEWAdhqc5R2vw7H2d0= Received: from VI1PR0401MB2221.eurprd04.prod.outlook.com (10.166.44.10) by VI1PR0401MB1997.eurprd04.prod.outlook.com (10.166.141.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.10; Fri, 13 Apr 2018 21:57:25 +0000 Received: from VI1PR0401MB2221.eurprd04.prod.outlook.com ([fe80::4db7:9528:b5a9:d8af]) by VI1PR0401MB2221.eurprd04.prod.outlook.com ([fe80::4db7:9528:b5a9:d8af%14]) with mapi id 15.20.0675.012; Fri, 13 Apr 2018 21:57:24 +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 v2 1/2] mtd: rawnand: gpmi: add support for specific ECC strength Thread-Topic: [PATCH v2 1/2] mtd: rawnand: gpmi: add support for specific ECC strength Thread-Index: AQHTs/Q84wpDmjjkQE6xK0KKiElbF6P/fOQA Date: Fri, 13 Apr 2018 21:57:24 +0000 Message-ID: References: <20180304200602.11475-1-stefan@agner.ch> In-Reply-To: <20180304200602.11475-1-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: [64.157.242.222] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0401MB1997;7:/uMKRHUNdutUhF9qKy2SqPNIp2o1lEWruPJD3nEKhtXv77Ro50N+d3x9Ed9Do3g5OHfrP23I4yYwGvZHO0Y3GryWthkmniKp1nHy8WIqkO8Q8kdiFwdd2OuaO+SGV1FKG34AJVWydOnKtxoe+Y6jpjWBS22EAZQJleCbxCr9TTwy+hLmNOMxOQSHMEJelbch8xABSUfUkBZshDpeCvZNNfqhjXpcEx4k00Tg8Uy8TBAes2wASPUeVC28DjIdg329 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020);SRVR:VI1PR0401MB1997; x-ms-traffictypediagnostic: VI1PR0401MB1997: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231232)(944501327)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:VI1PR0401MB1997;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0401MB1997; x-forefront-prvs: 0641678E68 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(39380400002)(396003)(376002)(346002)(366004)(199004)(189003)(486006)(3846002)(6512007)(446003)(26005)(186003)(478600001)(6246003)(53546011)(11346002)(3280700002)(8676002)(3660700001)(25786009)(5660300001)(44832011)(102836004)(31686004)(2501003)(97736004)(5250100002)(105586002)(2900100001)(2906002)(39060400002)(81156014)(8936002)(6506007)(81166006)(4326008)(53936002)(6436002)(316002)(86362001)(36756003)(76176011)(305945005)(31696002)(68736007)(6486002)(110136005)(99286004)(2616005)(476003)(7736002)(6116002)(14454004)(229853002)(106356001)(66066001)(54906003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB1997;H:VI1PR0401MB2221.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: TXGc3XRK1qVUYRMUZbC0KkJnwL6TJUpvKMiMx4bcOYX7/obNZE/NFijrkJJrGAn9ofClWM09zKH9WUE/kSTRqM1dxf/wc6blTBGQfUU0koKuL8Tt4xoeD54QECUp9/DB9d/TvPPNoBzUthwKr+7jNUATTWMReapY4pHjcxP4VOCKjaQE9RvlsEreVD1lgqr7 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <8B69A6AE8D13EB4AB49159FE9EB9C566@eurprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: fe0521d8-b8f9-4da2-4c5c-08d5a1898a7d X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe0521d8-b8f9-4da2-4c5c-08d5a1898a7d X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Apr 2018 21:57:24.7914 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB1997 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDAzLzA0LzIwMTggMDI6MDYgUE0sIFN0ZWZhbiBBZ25lciB3cm90ZToNCj4gQWRkIHN1 cHBvcnQgZm9yIHNwZWNpZmllZCBFQ0Mgc3RyZW5ndGgvc2l6ZSB1c2luZyBkZXZpY2UgdHJlZQ0K PiBwcm9wZXJ0aWVzIG5hbmQtZWNjLXN0cmVuZ3RoL25hbmQtZWNjLXN0ZXAtc2l6ZS4NCj4gDQo+ IFNpZ25lZC1v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