From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aoTak-00015c-9P for linux-mtd@lists.infradead.org; Fri, 08 Apr 2016 10:24:44 +0000 Received: by mail-lf0-x233.google.com with SMTP id j11so75863015lfb.1 for ; Fri, 08 Apr 2016 03:24:21 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Boris Brezillon Cc: Richard Weinberger , linux-mtd@lists.infradead.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , David Woodhouse , Brian Norris , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 8/8] mtd: nand: socrates: set ECC algorithm explicitly Date: Fri, 8 Apr 2016 12:23:51 +0200 Message-Id: <1460111031-8706-9-git-send-email-zajec5@gmail.com> In-Reply-To: <1460111031-8706-1-git-send-email-zajec5@gmail.com> References: <1460111031-8706-1-git-send-email-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki --- drivers/mtd/nand/socrates_nand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c index e3305f9..888fd31 100644 --- a/drivers/mtd/nand/socrates_nand.c +++ b/drivers/mtd/nand/socrates_nand.c @@ -180,6 +180,7 @@ static int socrates_nand_probe(struct platform_device *ofdev) nand_chip->dev_ready = socrates_nand_device_ready; nand_chip->ecc.mode = NAND_ECC_SOFT; /* enable ECC */ + nand_chip->ecc.algo = NAND_ECC_HAMMING; /* TODO: I have no idea what real delay is. */ nand_chip->chip_delay = 20; /* 20us command delay time */ -- 1.8.4.5