]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nand: arasan_nfc: Clear ecc on bit while sending read command
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Thu, 25 Aug 2016 10:30:04 +0000 (16:00 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 15 Nov 2016 14:27:57 +0000 (15:27 +0100)
Clear ecc ON bit while sending read command as all types
of read command(like reading spare) doesnt need ECC to be
enabled. It has been anyway taken care in other places
whereever required using arasan_nand_enable_ecc().

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mtd/nand/arasan_nfc.c

index 86f7526a84e85b36787d9a4752b5241fe0145ad2..a8f795d957ffa03f2ab6e29defb5c1915afb684f 100644 (file)
@@ -853,6 +853,8 @@ static int arasan_nand_send_rdcmd(struct arasan_nand_command_format *curr_cmd,
                reg_val |= (page_val << ARASAN_NAND_CMD_PG_SIZE_SHIFT);
        }
 
+       reg_val &= ~ARASAN_NAND_CMD_ECC_ON_MASK;
+
        reg_val &= ~ARASAN_NAND_CMD_ADDR_CYCL_MASK;
 
        addr_cycles = arasan_nand_get_addrcycle(mtd);