NAND FLASH lockunlock bug fix
所属分类:处理器开发
开发工具:WINDOWS
文件大小:1KB
下载次数:5
上传日期:2018-03-20 16:48:50
上 传 者:
dahema
说明: nand flash 驱动程序。。。。。。。。。。
(spi nand flash driver .............)
文件列表:
NAND FLASH lockunlock bug fix\mtd-nand-fix-nand_lock-unlock-function.patch (2494, 2016-02-06)
Reset NAND before write protect check.
If we want to check the WP# low or high through STATUS READ and check bit 7,
we must reset the device, other operation (eg.erase/program a locked block) can
also clear the bit 7 of status register.
As we know the status register can be refreshed, if we do some operation to trigger it,
for example if we do erase/program operation to one block that is locked, then READ STATUS,
the bit 7 of READ STATUS will be 0 indicate the device in write protect, then if we do
erase/program operation to another block that is unlocked, the bit 7 of READ STATUS will
be 1 indicate the device is not write protect.
Suppose we checked the bit 7 of READ STATUS is 0 then judge the WP# is low (write protect),
but in this case the WP# maybe high if we do erase/program operation to a locked block,
so we must reset the device if we want to check the WP# low or high through STATUS READ and
check bit 7.
It is suitable for all SLC/MLC NAND.
From Linux kernel v3.18, this patch already be enabled.
近期下载者:
相关文件:
收藏者: