Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3253818imm; Sun, 24 Jun 2018 15:47:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIqw11F+mNzj9Gz/lOXr5zPOD8C9jUA7SSl8UwnFEv2GEVlqh7m8VaWUg1hbGLv+1Ugwf+5 X-Received: by 2002:a62:c61d:: with SMTP id m29-v6mr10565045pfg.26.1529880423316; Sun, 24 Jun 2018 15:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529880423; cv=none; d=google.com; s=arc-20160816; b=gpHGO1hijGeCFEISNaMcHnghUcJ7xM4NQcCNl5cTafQ3immYJE7KZ8Sf0u6y6E7QI2 1s6arU87PxUBxyJAH4XaM7OoNn+XUcxxhf4zpzLIPii03HrCf3f8lum9ZOpCXNtx2Ilz nOc1eTVGsPpHnMeljjpV2kysjh8ChGCgcAufayZ/M1Tse8S2mhdcgFM3VJCnsdMaDuVz eFVmiE/qXN32viBgnkry0VpycED3UFrBNXgcWGjk6shkdN3Jn9ZdPgzKbFlCh5MsEy/y C+nGIkyqpdjqOjrpza1LvrPysOo+rrOfAh7UY6lGEieW/hl+d5md1DExvwNPBMCYoVYu 4s7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=YcGj6N2LsfgM1D8lNMeviGRVWSBp/RlggU4fgqMJIbo=; b=fmNaglFmWID3vj8Kdjfw+/yEkI9eUNfo3gwQPRqqanhq23fKv6TiLfRnDeUD7/pLg2 yvxOOyF9ThDt3YtmVzYkWrNvAjenAWfl2mXFDvWPHzbcMi6HXD8GERiKsCgAwY/wBuUC 3J0VmS6jFeh3KsOU8Owf/iZfJ4YX2L7GTAmkfmh9K6/UyiIQpedGqWqNMu3hadh0iUMa Mbks7EC7T2wQEVPRmOj39+Sxv/sxHHFy3TsIvnVdEfUcjMR9GmacDAeEgFIOtpBUxCuw EvGTlnKM2UzxrXoP6J1KuSxy5s60Z9g+SAo/m9QugbLooyljwOkMqpvRHpn27MTwvbQu 3VHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail header.b=kMtDEROe; 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=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e189-v6si12953729pfe.80.2018.06.24.15.46.49; Sun, 24 Jun 2018 15:47:03 -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=@alliedtelesis.co.nz header.s=mail header.b=kMtDEROe; 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=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752193AbeFXWpE (ORCPT + 99 others); Sun, 24 Jun 2018 18:45:04 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:56250 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbeFXWpB (ORCPT ); Sun, 24 Jun 2018 18:45:01 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 5CD8C84484; Mon, 25 Jun 2018 10:45:00 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail; t=1529880300; bh=YcGj6N2LsfgM1D8lNMeviGRVWSBp/RlggU4fgqMJIbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kMtDEROebWbmSU7C2H1P1OlkRoh4f+WW0yhV0q7DTnICAS592FfSoc79FUzyCHdXz rDAwSUwdJzu5PbopyHWi0k9s36x1aXsV1NsfflqgTn8ZJi4I+3OYjf+zayAIxRAt42 nfUpGFDE1pvDdQd9ygJyminJ7up1lkN6XHSZbic8= Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Mon, 25 Jun 2018 10:44:59 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id 99D8813EF9D; Mon, 25 Jun 2018 10:44:58 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 33F131E2626; Mon, 25 Jun 2018 10:44:55 +1200 (NZST) From: Chris Packham To: miquel.raynal@bootlin.com, boris.brezillon@bootlin.com, dwmw2@infradead.org, computersforpeace@gmail.com, linux-mtd@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Chris Packham , Richard Weinberger , Marek Vasut Subject: [PATCH v6 1/6] mtd: rawnand: marvell: Handle on-die ECC Date: Mon, 25 Jun 2018 10:44:43 +1200 Message-Id: <20180624224448.21872-2-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180624224448.21872-1-chris.packham@alliedtelesis.co.nz> References: <20180624224448.21872-1-chris.packham@alliedtelesis.co.nz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From the controllers point of view this is the same as no or software only ECC. Signed-off-by: Chris Packham Reviewed-by: Boris Brezillon --- Changes in v2: - New Changes in v3: - Add review from Boris Changes in v4: - None Changes in v5: - None Changes in v6: - None drivers/mtd/nand/raw/marvell_nand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/raw/marvell_nand.c b/drivers/mtd/nand/raw/marvell_nand.c index ebb1d141b900..ba6889bbe802 100644 --- a/drivers/mtd/nand/raw/marvell_nand.c +++ b/drivers/mtd/nand/raw/marvell_nand.c @@ -2157,6 +2157,7 @@ static int marvell_nand_ecc_init(struct mtd_info *mtd, break; case NAND_ECC_NONE: case NAND_ECC_SOFT: + case NAND_ECC_ON_DIE: if (!nfc->caps->is_nfcv2 && mtd->writesize != SZ_512 && mtd->writesize != SZ_2K) { dev_err(nfc->dev, "NFCv1 cannot write %d bytes pages\n", -- 2.18.0