projects
/
yaffs
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fd03f27
)
*** empty log message ***
author
charles
<charles>
Tue, 8 Apr 2003 19:53:44 +0000
(19:53 +0000)
committer
charles
<charles>
Tue, 8 Apr 2003 19:53:44 +0000
(19:53 +0000)
yaffs_mtdif.c
patch
|
blob
|
history
diff --git
a/yaffs_mtdif.c
b/yaffs_mtdif.c
index a7b6aaedc3379d8a26271a02ccac91da91a52c24..0dfe12d7338c9ddeb64f5693252b67cbfa7b4ae6 100644
(file)
--- a/
yaffs_mtdif.c
+++ b/
yaffs_mtdif.c
@@
-13,7
+13,7
@@
*
*/
*
*/
-const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.
8 2003-03-11 05:16:53
charles Exp $";
+const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.
9 2003-04-08 19:53:44
charles Exp $";
#ifdef CONFIG_YAFFS_MTD_ENABLED
#ifdef CONFIG_YAFFS_MTD_ENABLED
@@
-114,12
+114,14
@@
int nandmtd_ReadChunkFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaf
return YAFFS_FAIL;
}
return YAFFS_FAIL;
}
-
+// Callback not needed for NAND
+#if 0
static void nandmtd_EraseCallback(struct erase_info *ei)
{
yaffs_Device *dev = (yaffs_Device *)ei->priv;
up(&dev->sem);
}
static void nandmtd_EraseCallback(struct erase_info *ei)
{
yaffs_Device *dev = (yaffs_Device *)ei->priv;
up(&dev->sem);
}
+#endif
int nandmtd_EraseBlockInNAND(yaffs_Device *dev, int blockNumber)
int nandmtd_EraseBlockInNAND(yaffs_Device *dev, int blockNumber)
@@
-134,7
+136,7
@@
int nandmtd_EraseBlockInNAND(yaffs_Device *dev, int blockNumber)
ei.len = dev->nBytesPerChunk * dev->nChunksPerBlock;
ei.time = 1000;
ei.retries = 2;
ei.len = dev->nBytesPerChunk * dev->nChunksPerBlock;
ei.time = 1000;
ei.retries = 2;
- ei.callback =
nandmtd_EraseCallback
;
+ ei.callback =
NULL
;
ei.priv = (u_long)dev;
// Todo finish off the ei if required
ei.priv = (u_long)dev;
// Todo finish off the ei if required
@@
-143,7
+145,8
@@
int nandmtd_EraseBlockInNAND(yaffs_Device *dev, int blockNumber)
retval = mtd->erase(mtd,&ei);
retval = mtd->erase(mtd,&ei);
- down(&dev->sem); // Wait for the erasure to complete
+ //No need for callback
+ // down(&dev->sem); // Wait for the erasure to complete
if (retval == 0)
return YAFFS_OK;
if (retval == 0)
return YAFFS_OK;