projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a docstring explaining how to use test_runner.py
[yaffs2.git]
/
direct
/
test-framework
/
yaffs_m18_drv.c
diff --git
a/direct/test-framework/yaffs_m18_drv.c
b/direct/test-framework/yaffs_m18_drv.c
index 9a8ee49e903044d97e80ed4121e3ecdb38686cbf..540d23a0d87a35267ffb9268e6a4f612f10e55ab 100644
(file)
--- a/
direct/test-framework/yaffs_m18_drv.c
+++ b/
direct/test-framework/yaffs_m18_drv.c
@@
-1,8
+1,7
@@
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002-2011 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
+ * Copyright (C) 2002-2018 Aleph One Ltd.
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
*
* Created by Charles Manning <charles@aleph1.co.uk>
*
@@
-224,6
+223,8
@@
static int m18_drv_ReadChunkFromNAND(struct yaffs_dev *dev,int nand_chunk,
u32 *dataAddr = Chunk2DataAddr(dev,nand_chunk);
u32 *spareAddr = Chunk2SpareAddr(dev,nand_chunk);
u32 *dataAddr = Chunk2DataAddr(dev,nand_chunk);
u32 *spareAddr = Chunk2SpareAddr(dev,nand_chunk);
+ (void) data_len;
+
if(data)
{
m18_drv_FlashRead32(dataAddr,(u32 *)data,dev->param.total_bytes_per_chunk / 4);
if(data)
{
m18_drv_FlashRead32(dataAddr,(u32 *)data,dev->param.total_bytes_per_chunk / 4);
@@
-305,7
+306,7
@@
static int m18_drv_EraseBlockInNAND(struct yaffs_dev *dev, int blockNumber)
static int m18_drv_InitialiseNAND(struct yaffs_dev *dev)
{
static int m18_drv_InitialiseNAND(struct yaffs_dev *dev)
{
-
int
i;
+
u32
i;
m18_drv_FlashInit();
/* Go through the blocks formatting them if they are not formatted */
m18_drv_FlashInit();
/* Go through the blocks formatting them if they are not formatted */