]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mtd: nand: sunxi: Actually use DMA for subpage reads
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 15 May 2017 22:23:45 +0000 (00:23 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 1 Jun 2017 08:09:31 +0000 (10:09 +0200)
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@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c

index 9c2dbe352c439b710d199c1e3a32194f2820aeaa..9a46d1db9211f642979f8357fb5088aa7fd3b5ca 100644 (file)
@@ -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;
 }