projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49ad402
)
Revert "env: sf: fix environment in SPI NOR"
author
Tom Rini
<trini@konsulko.com>
Mon, 21 Jan 2019 16:57:58 +0000
(11:57 -0500)
committer
Tom Rini
<trini@konsulko.com>
Mon, 21 Jan 2019 16:57:58 +0000
(11:57 -0500)
Per Heiko the original changes were correct and something is misbehaving
on his hardware.
This reverts commit
3d5931e5986a49c44cdab845c6751d845812e8d8
.
Signed-off-by: Tom Rini <trini@konsulko.com>
env/sf.c
patch
|
blob
|
history
diff --git
a/env/sf.c
b/env/sf.c
index 31dd00357521d97d0c8819db918d356c5c60d778..b3dec82c353afea75ef183145c689b34560445e2 100644
(file)
--- a/
env/sf.c
+++ b/
env/sf.c
@@
-98,7
+98,7
@@
static int spi_flash_read_env(struct spi_flash *flash, u32 offset, size_t len,
u32 addr = 0;
u32 page_size = flash->page_size;
- memset(buf, 0x
ff
, len);
+ memset(buf, 0x
0
, len);
for (int i = 0; i < len / page_size; ++i) {
int ret = spi_flash_read(flash, offset, page_size,
&((char *)buf)[addr]);