drivers: rkflash: Remove cache bitflip detect 2

Part of spinand sram maybe change after read status register

Fixes: cf69491c97 ("drivers: rkflash: Add spinand program cache recheck")
Change-Id: Ia8f902fe51562d71a5b8e78a80e63eb26257df38
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2021-02-06 09:45:45 +08:00
committed by Tao Huang
parent 9f3a45ac0c
commit a7cc0e6bee

View File

@@ -670,18 +670,6 @@ u32 sfc_nand_prog_page_raw(u8 cs, u32 addr, u32 *p_page_buf)
return ret;
ret = sfc_nand_wait_busy(&status, 1000 * 1000);
/*
* At the moment of power lost, flash maybe work in a unkonw state
* and result in bit flip, when this situation is detected by cache
* recheck, it's better to wait a second for a reliable hardware
* environment to reduce error behavior.
*/
sfc_nand_read_cache(addr, (u32 *)sfc_nand_dev.recheck_buffer, 0, data_area_size);
if (memcmp(sfc_nand_dev.recheck_buffer, p_page_buf, data_area_size)) {
rkflash_print_error("%s cache bitflip2\n", __func__);
msleep(1000);
}
if (status & (1 << 3))
return SFC_NAND_PROG_ERASE_ERROR;