Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6652824imu; Mon, 3 Dec 2018 00:04:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/UsBrwxLxV9frNplNikyxzOoo6x98tjU4MLgsfCqdaRdlkUf0o6XCOtg5pcJ0lF2n4SHqj0 X-Received: by 2002:a65:41c2:: with SMTP id b2mr12316574pgq.67.1543824266212; Mon, 03 Dec 2018 00:04:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543824266; cv=none; d=google.com; s=arc-20160816; b=vJGVG+22/ty2U+dNpNhSVkGcgWOqRhxW9uHinaGbvBBU058FILLypKJVlB6Hdc/vaR kr6/oDl6xNElPS7k3BzuyNjnhHVuirEgFJGvHEjsFwmtwDrjz54hKgzOeUgKpknVc9Uz NlvJrXn6u3CBkcVtQAvERFPE42dWly+6+N6I3JbSzBZqssXOGnbtSon4GABoAfvEnf4S 7RhNnfaKarNjjGIPSMaq+wPb8l9cUHUyqLh6jr4zakWXP4mX7lEP1R0XydPToC/xhCbG xamELiHr17CebotobjFh6x2p1CR0B40tXQilT7w84Kv2fNgPnsfNqEcmyBbp1yNQvyrL Pm1A== 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:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=Lo0g4HvcYKRLrZ2ei3Umu8qerTIeI3t8LBTyuOMLAXI=; b=a0O8Vwtzngv8Ugs+9ZqUvN/bAtCByhCPPvCMduxFREuPn9ueBwjppw05GB6UHWkqXv UYh0Jh7d+rtjKrgda4HxYffKCgSA98a3TMNLUSfLwaewUWfNmixVx2YFPsMwjf6+Ikns qvr2E3bALBWNHXsYHBINPkKblxr0oUrWtikqbtjhuGSLTvLQnwtsQT2ZX/vIVbUrvmdz 866xII+EHIlt4AGO2sBbB4cQt8jl/p7myXGjYETjGbBj1408L+OFN3sJvU2Sb/gbTsUt UxLVYAm2xDebyBFnWmzq2hIIUTwbLsVTPjCQGAS8d/qSpFxDCE67LYjuFX3P4d2nNMg8 hHHw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x64si14131990pfb.120.2018.12.03.00.04.10; Mon, 03 Dec 2018 00:04:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725830AbeLCIBq (ORCPT + 99 others); Mon, 3 Dec 2018 03:01:46 -0500 Received: from skedge04.snt-world.com ([91.208.41.69]:53704 "EHLO skedge04.snt-world.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbeLCIBp (ORCPT ); Mon, 3 Dec 2018 03:01:45 -0500 Received: from sntmail14r.snt-is.com (unknown [10.203.32.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by skedge04.snt-world.com (Postfix) with ESMTPS id 2748167A075; Mon, 3 Dec 2018 09:01:39 +0100 (CET) Received: from sntmail12r.snt-is.com (10.203.32.182) by sntmail14r.snt-is.com (10.203.32.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1466.3; Mon, 3 Dec 2018 09:01:38 +0100 Received: from sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305]) by sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305%5]) with mapi id 15.01.1466.003; Mon, 3 Dec 2018 09:01:38 +0100 From: Schrempf Frieder To: "miquel.raynal@bootlin.com" , "linux-kernel@vger.kernel.org" CC: "peron.clem@gmail.com" , Schrempf Frieder , Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , "linux-mtd@lists.infradead.org" Subject: [PATCH v3] mtd: spinand: Fix ECC status and OOB layout for Toshiba TC58CVG2S0H Thread-Topic: [PATCH v3] mtd: spinand: Fix ECC status and OOB layout for Toshiba TC58CVG2S0H Thread-Index: AQHUit5r+i/3AIRP0kKtRCmx1SJH2g== Date: Mon, 3 Dec 2018 08:01:38 +0000 Message-ID: <1543823821-18352-1-git-send-email-frieder.schrempf@kontron.de> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.25.9.43] x-c2processedorg: 51b406b7-48a2-4d03-b652-521f56ac89f3 Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SnT-MailScanner-Information: Please contact the ISP for more information X-SnT-MailScanner-ID: 2748167A075.AC741 X-SnT-MailScanner: Found to be clean X-SnT-MailScanner-SpamCheck: X-SnT-MailScanner-From: frieder.schrempf@kontron.de X-SnT-MailScanner-To: boris.brezillon@bootlin.com, computersforpeace@gmail.com, dwmw2@infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, marek.vasut@gmail.com, miquel.raynal@bootlin.com, peron.clem@gmail.com, richard@nod.at X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogRnJpZWRlciBTY2hyZW1wZiA8ZnJpZWRlci5zY2hyZW1wZkBrb250cm9uLmRlPg0KDQpX aGVuIHJlYWRpbmcgdGhlIHN0YXR1cyBvZiB0aGUgb24tY2hpcCBFQ0MsIHRoZSBUb3NoaWJhIGNo aXAgcmV0dXJucw0KdHdvIGRpZmZlcmVudC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