On Fri, 04 Apr 2003 20:38, Steve Tsai wrote:
> Why was semaphore used in function nandmtd_EraseBlockInNAND?
>
> Steve Tsai
>
The semaphore is not required for NAND and has now been removed in
yaffs_mtdif.c in CVS.
I expect this feature is in the interface for NOR flash. NOR flash takes a
long time to erase, so the erase call returns before the erase is complete.
You can then use erase suspend to suspend the erase and do accesses to the
chip. The callback is then called to tell you that the erase is complete.
Since NAND does not have erase suspend, and the erases are fast, the callback
is not required.
-- CHarles
---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (
www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to
yaffs-request@toby-churchill.org with the text "unsubscribe"
(without the quotes) as the subject.