All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Cash flash correction of do_load()
@ 2016-09-24  2:55 yoko
  0 siblings, 0 replies; 2+ messages in thread
From: yoko @ 2016-09-24  2:55 UTC (permalink / raw)
  To: u-boot

---
 fs/fs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/fs.c b/fs/fs.c
index 595ff1f..7607230 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -417,6 +417,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
 	}
 	puts("\n");
 
+	flush_cache(addr, len_read);
+
 	setenv_hex("fileaddr", addr);
 	setenv_hex("filesize", len_read);
 
@@ -535,4 +537,3 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 	return CMD_RET_SUCCESS;
 }
-
-- 
2.8.4 (Apple Git-73)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] Cash flash correction of do_load()
@ 2016-09-25  3:10 yoko
  0 siblings, 0 replies; 2+ messages in thread
From: yoko @ 2016-09-25  3:10 UTC (permalink / raw)
  To: u-boot

Signed-off-by: yoko <jr4qpv@yahoo.co.jp>
---
 fs/fs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

 For a program execution abnormal measure by the fatload command, cash flash processing is added to do_load().

diff --git a/fs/fs.c b/fs/fs.c
index 595ff1f..7607230 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -417,6 +417,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
 	}
 	puts("\n");
 
+	flush_cache(addr, len_read);
+
 	setenv_hex("fileaddr", addr);
 	setenv_hex("filesize", len_read);
 
@@ -535,4 +537,3 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 	return CMD_RET_SUCCESS;
 }
-
-- 
2.8.4 (Apple Git-73)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-25  3:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-24  2:55 [U-Boot] [PATCH] Cash flash correction of do_load() yoko
2016-09-25  3:10 yoko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.