From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXoHg-00005g-1P for barebox@lists.infradead.org; Fri, 14 Dec 2018 14:17:49 +0000 From: Sascha Hauer Date: Fri, 14 Dec 2018 15:17:15 +0100 Message-Id: <20181214141730.26181-9-s.hauer@pengutronix.de> In-Reply-To: <20181214141730.26181-1-s.hauer@pengutronix.de> References: <20181214141730.26181-1-s.hauer@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 08/23] mtd: nand: omap: Disable subpage reads in hardware ecc mode To: Barebox List Once the driver has started in software ECC mode the NAND core will set the NAND_SUBPAGE_READ flag. We have to clear it explicitly when we change to another mode afterwards. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand_omap_gpmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand/nand_omap_gpmc.c index 4ec4b93595..9b92f179b1 100644 --- a/drivers/mtd/nand/nand_omap_gpmc.c +++ b/drivers/mtd/nand/nand_omap_gpmc.c @@ -736,6 +736,7 @@ static int omap_gpmc_eccmode(struct gpmc_nand_info *oinfo, nand->ecc.read_oob = NULL; nand->ecc.write_oob = NULL; nand->ecc.mode = NAND_ECC_HW; + nand->options &= ~NAND_SUBPAGE_READ; } switch (mode) { -- 2.19.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox