mtd: nand: sunxi: fix NFC_CTL setting
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon May 23 21:59:10 PDT 2016
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=68ffbf7f9fb11323238cb31c956b4f381e6b05cc
Commit: 68ffbf7f9fb11323238cb31c956b4f381e6b05cc
Parent: f8b04746a4ba389d609b5ddcfbf95835c7dfcb31
Author: Boris Brezillon <boris.brezillon at free-electrons.com>
AuthorDate: Fri Mar 4 17:29:20 2016 +0100
Committer: Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Tue Apr 19 22:05:41 2016 +0200
mtd: nand: sunxi: fix NFC_CTL setting
NFC_PAGE_SHIFT() already takes the real page_shift value and subtract 10
to it.
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
drivers/mtd/nand/sunxi_nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c
index 4cb5c6f..f8b3a72 100644
--- a/drivers/mtd/nand/sunxi_nand.c
+++ b/drivers/mtd/nand/sunxi_nand.c
@@ -410,7 +410,7 @@ static void sunxi_nfc_select_chip(struct mtd_info *mtd, int chip)
sel = &sunxi_nand->sels[chip];
ctl |= NFC_CE_SEL(sel->cs) | NFC_EN |
- NFC_PAGE_SHIFT(nand->page_shift - 10);
+ NFC_PAGE_SHIFT(nand->page_shift);
if (sel->rb.type == RB_NONE) {
nand->dev_ready = NULL;
} else {
More information about the linux-mtd-cvs
mailing list