Set soc->ctrl so that the prepare_data_bus callback is used if it has
been specified by the soc.
Signed-off-by: Mark Tomlinson
Cc: Dario Binacchi
Cc: Michael Trimarchi
---
drivers/mtd/nand/raw/brcmnand/brcmnand.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/
extended parameter page for parts using ONFI >= 2.1.
In case of non-ONFI NAND parts there could be a nand_id table entry with
ECC information. If there is valid device tree entry for nand-ecc-strength
and nand-ecc-step-size fields it still shall override the detected values.
Signed-off-by: M
-by: Mark Tomlinson
---
Note that this patch is based on 'next' rather than 'master' as it is
dependent on a patch which has not yet made it to master.
Changes for v2:
- Fix spelling mistake in commit.
- Remove changes to old non-DM code.
drive
the clock.
The old-style (non-DM) code has also been updated. Note that this does
not support the DS1337, as there is a separate driver for this. Also
note that the original (DM) code used the wrong control-register address
for the DS1337.
Signed-off-by: Mark Tomlinson
---
Note that this patch is
Some calls to flash_protect() do not check that info is not
NULL. This change prevents this from causing random memory to
be stomped on.
---
common/flash.c | 10 +++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/common/flash.c b/common/flash.c
index eb4b2f5..dc376ee 10064
dom memory would be clobbered
causing the device to lock up.
This patch changes flash_protect() to check for the NULL, and the
error goes unreported.
Mark Tomlinson (1):
flash: Check info pointer in flash_protect().
common/flash.c | 10 +++---
1 files changed, 7 insertions(+), 3 deletions(-
our own build, I have just removed the code that
tries to protect the monitor area, and will use an auto-protect area instead to
do the same job.
- Mark
>>> Stefan Roese 5/18/2010 8:20 PM >>>
Hi Mark,
On Tuesday 18 May 2010 07:26:34 Mark Tomlinson wrote:
> Our hardware h
Stefan Roese 5/19/2010 9:44 PM >>>
Mark,
On Tuesday 18 May 2010 22:10:51 mark tomlinson wrote:
> Yes we do have 2 flash chips. Here's the mapping:
>
> #define CONFIG_SYS_FLASH_BASE 0xf800 /* 2 chips*16M */
Hmmm. 2 * 16MByte, thats 32MByte == 0x200. So you should ha
written value to zero.
Signed-off-by: Mark Tomlinson
---
drivers/i2c/i2c_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c
index d34b749..4539667 100644
--- a/drivers/i2c/i2c_core.c
+++ b/drivers/i2c/i2c_core.c
@@ -178,7 +178,7
"diconnect" and "disconnet" should both be "disconnect".
Signed-off-by: Mark Tomlinson
---
drivers/i2c/i2c_core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c
index 4539667..41cc3b8 10064
that the next few words are , and if
so, the block is assumed to be empty, and so is skipped.
Signed-off-by: Mark Tomlinson
---
fs/jffs2/jffs2_1pass.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
index
data is saved.
jffs2_1pass_list_inodes() read each inode for every file in the
directory into a buffer. By using NULL as a buffer pointer, NOR
flash simply returns a pointer, and therefore avoids a memory copy.
Signed-off-by: Mark Tomlinson
---
fs/jffs2/jffs2_1pass.c | 25
If the flash is slow, reading less from the flash into buffers makes
the process faster.
Signed-off-by: Mark Tomlinson
---
fs/jffs2/jffs2_1pass.c | 24
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
index
If a destination is not provided, jffs2_1pass_read_inode() only
returns the length of the file. In this case, avoid reading all
the data nodes, and return as soon as the length of the file is
known.
Signed-off-by: Mark Tomlinson
---
fs/jffs2/jffs2_1pass.c | 6 ++
1 file changed, 6
been faulty (although it would have worked with NOR flash). Second,
setting the ino to zero to ignore the entry did not work, since this
was either writing to a temporary buffer, or (for NOR flash) directly
to flash. Either way, the change was not remembered.
Signed-off-by: Mark Tomlinson
---
fs
les are no longer scanned,
there is an improvement on this filesystem (the flash is approx half full).
Also, "change scansize" appears to do very little in this benchmark list.
But without it, the "use cleanmarker" would not show as much improvement.
Mark Tomlinson (8):
JFF
marker at the beginning, since the entire sector is not
blank.
Signed-off-by: Mark Tomlinson
---
fs/jffs2/jffs2_1pass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
index 10bd7be..d78fb06 100644
--- a/fs/jffs2/jffs2_1pass.c
This unsorted list is then sorted once
using mergesort after all the entries have been added to the list.
This speeds up the scanning of the flash file system considerably.
Signed-off-by: Mark Tomlinson
---
fs/jffs2/Makefile| 1 +
fs/jffs2/jffs2_1pass.c
would still be seen. Since the directory entries
are sorted, just look at the next entry in the list, and if it's the same
move to that entry instead.
Signed-off-by: Mark Tomlinson
---
fs/jffs2/jffs2_1pass.c | 37 -
1 file changed, 32 insertions(+), 5 dele
mergesort code.
- Removed #ifdef, using Makefile change instead.
Mark Tomlinson (8):
JFFS2: Return early when file read not necessary
JFFS2: Speed up and fix comparison functions
JFFS2: Only list each directory entry once
JFFS2: Improve speed reading flash files
JFFS2: Optimize building li
If the flash is slow, reading less from the flash into buffers makes
the process faster.
Signed-off-by: Mark Tomlinson
---
Changes in v2:
- Change comment style
fs/jffs2/jffs2_1pass.c | 25 +
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git a/fs/jffs2
If a destination is not provided, jffs2_1pass_read_inode() only
returns the length of the file. In this case, avoid reading all
the data nodes, and return as soon as the length of the file is
known.
Signed-off-by: Mark Tomlinson
---
Changes in v2:
- Fix comment style
- Remove extra {} pair
that the next few words are , and if
so, the block is assumed to be empty, and so is skipped.
Signed-off-by: Mark Tomlinson
---
Changes in v2:
- Changed comment style
fs/jffs2/jffs2_1pass.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/fs/jffs2
been faulty (although it would have worked with NOR flash). Second,
setting the ino to zero to ignore the entry did not work, since this
was either writing to a temporary buffer, or (for NOR flash) directly
to flash. Either way, the change was not remembered.
Signed-off-by: Mark Tomlinson
This unsorted list is then sorted once
using mergesort after all the entries have been added to the list.
This speeds up the scanning of the flash file system considerably.
Signed-off-by: Mark Tomlinson
---
Changes in v2:
- Changed copyright notice to use SPDX-Licence-Identifier.
- Added URL to ori
would still be seen. Since the directory entries
are sorted, just look at the next entry in the list, and if it's the same
move to that entry instead.
Signed-off-by: Mark Tomlinson
---
Changes in v2:
- Fixed some missing calls to put_fl_mem().
fs/jffs2/jffs2_1pass.c
marker at the beginning, since the entire sector is not
blank.
Signed-off-by: Mark Tomlinson
---
Changes in v2: None
fs/jffs2/jffs2_1pass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
index f488537..c55d472 100644
--- a/fs
data is saved.
jffs2_1pass_list_inodes() read each inode for every file in the
directory into a buffer. By using NULL as a buffer pointer, NOR
flash simply returns a pointer, and therefore avoids a memory copy.
Signed-off-by: Mark Tomlinson
---
Changes in v2:
- Change comment style
fs/jffs2
The __get_unaligned_le* functions may not be declared on all platforms.
Instead, get_unaligned_le* should be used. On many platforms both of
these are the same function.
Change-Id: If28222615e85a6f34f3fde42eb21c6f56a2cb988
Reviewed-by: Chris Packham
---
drivers/usb/eth/smsc95xx.c | 4 ++--
1 fil
29 matches
Mail list logo