[PATCH 2/2] mtd: rawnand: brcmnand: Allow soc-specific callbacks to work

2024-02-25 Thread Mark Tomlinson
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/

[PATCH 1/2] mtd: rawnand: brcmnand: fallback to detected ecc-strengh, ecc-step-size

2024-02-25 Thread Mark Tomlinson
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

[PATCH v2] rtc: ds1307: Handle oscillator-stop bit correctly

2021-09-27 Thread Mark Tomlinson
-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

[PATCH] rtc: ds1307: Handle oscillator-stop bit correctly

2021-09-20 Thread Mark Tomlinson
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

[U-Boot] [PATCH 1/1] flash: Check info pointer in flash_protect().

2010-05-17 Thread Mark Tomlinson
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

[U-Boot] [PATCH 0/1] Fix hang trying to protect flash sectors

2010-05-17 Thread Mark Tomlinson
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(-

Re: [U-Boot] [PATCH 0/1] Fix hang trying to protect flash sectors

2010-05-18 Thread mark tomlinson
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

Re: [U-Boot] [PATCH 0/1] Fix hang trying to protect flash sectors

2010-05-19 Thread mark tomlinson
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

[U-Boot] [PATCH 1/2] i2c: Fix deselection of muxes

2014-12-01 Thread Mark Tomlinson
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

[U-Boot] [PATCH 2/2] i2c: Correct spelling error

2014-12-01 Thread Mark Tomlinson
"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

[U-Boot] [PATCH 7/8] JFFS2: Use CLEANMARKER to reduce scanning time

2015-06-28 Thread Mark Tomlinson
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

[U-Boot] [PATCH 4/8] JFFS2: Improve speed reading flash files

2015-06-28 Thread Mark Tomlinson
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

[U-Boot] [PATCH 5/8] JFFS2: Optimize building lists during scan

2015-06-28 Thread Mark Tomlinson
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

[U-Boot] [PATCH 1/8] JFFS2: Return early when file read not necessary

2015-06-28 Thread Mark Tomlinson
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

[U-Boot] [PATCH 2/8] JFFS2: Speed up and fix comparison functions

2015-06-28 Thread Mark Tomlinson
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

[U-Boot] [PATCH 0/8] JFFS2 fixes and performance improvements

2015-06-28 Thread Mark Tomlinson
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

[U-Boot] [PATCH 6/8] JFFS2: Change scansize to match linux kernel

2015-06-28 Thread Mark Tomlinson
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

[U-Boot] [PATCH 8/8] JFFS2: Use merge sort when parsing filesystem

2015-06-28 Thread 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 --- fs/jffs2/Makefile| 1 + fs/jffs2/jffs2_1pass.c

[U-Boot] [PATCH 3/8] JFFS2: Only list each directory entry once

2015-06-28 Thread Mark Tomlinson
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

[U-Boot] [PATCH v2 0/8] JFFS2 fixes and performance improvements

2015-06-30 Thread Mark Tomlinson
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

[U-Boot] [PATCH v2 5/8] JFFS2: Optimize building lists during scan

2015-06-30 Thread Mark Tomlinson
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

[U-Boot] [PATCH v2 1/8] JFFS2: Return early when file read not necessary

2015-06-30 Thread Mark Tomlinson
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

[U-Boot] [PATCH v2 7/8] JFFS2: Use CLEANMARKER to reduce scanning time

2015-06-30 Thread Mark Tomlinson
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

[U-Boot] [PATCH v2 2/8] JFFS2: Speed up and fix comparison functions

2015-06-30 Thread Mark Tomlinson
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

[U-Boot] [PATCH v2 8/8] JFFS2: Use merge sort when parsing filesystem

2015-06-30 Thread 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

[U-Boot] [PATCH v2 3/8] JFFS2: Only list each directory entry once

2015-06-30 Thread Mark Tomlinson
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

[U-Boot] [PATCH v2 6/8] JFFS2: Change scansize to match linux kernel

2015-06-30 Thread Mark Tomlinson
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

[U-Boot] [PATCH v2 4/8] JFFS2: Improve speed reading flash files

2015-06-30 Thread Mark Tomlinson
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

[U-Boot] [PATCH] net: smsc95xx: Use correct get_unaligned functions

2016-06-13 Thread Mark Tomlinson
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