mtd: nand: sunxi: Actually use DMA for subpage reads

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jul 13 10:59:15 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=2de85e73360104d3582363dcebdcdd7dc20431be
Commit:     2de85e73360104d3582363dcebdcdd7dc20431be
Parent:     7d135bcced20be2b50128432c5426a7278ec4f6d
Author:     Boris Brezillon <boris.brezillon at free-electrons.com>
AuthorDate: Tue May 16 00:23:45 2017 +0200
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Thu Jun 1 10:09:31 2017 +0200

    mtd: nand: sunxi: Actually use DMA for subpage reads
    
    ecc->read_subpage is set to sunxi_nfc_hw_ecc_read_subpage_dma when
    ->dmac != NULL, but is then unconditionally overwritten in the common
    init path.
    
    Remove this extra assignment to allow usage of the DMA operation when
    possible.
    
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/nand/sunxi_nand.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c
index 9c2dbe3..9a46d1d 100644
--- a/drivers/mtd/nand/sunxi_nand.c
+++ b/drivers/mtd/nand/sunxi_nand.c
@@ -1921,7 +1921,6 @@ static int sunxi_nand_hw_ecc_ctrl_init(struct mtd_info *mtd,
 	ecc->write_subpage = sunxi_nfc_hw_ecc_write_subpage;
 	ecc->read_oob_raw = nand_read_oob_std;
 	ecc->write_oob_raw = nand_write_oob_std;
-	ecc->read_subpage = sunxi_nfc_hw_ecc_read_subpage;
 
 	return 0;
 }



More information about the linux-mtd-cvs mailing list