projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11b35d5
)
altera_qspi: initialize instr.mtd in flash_erase
author
Thomas Chou
<thomas@wytron.com.tw>
Fri, 18 Dec 2015 13:35:08 +0000
(21:35 +0800)
committer
Thomas Chou
<thomas@wytron.com.tw>
Sat, 19 Dec 2015 01:51:19 +0000
(09:51 +0800)
Initialize instr.mtd in flash_erase(). This fixes the system
hang issue when CONFIG_MTD_PARTITIONS is selected.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Marek Vasut <marex@denx.de>
drivers/mtd/altera_qspi.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/altera_qspi.c
b/drivers/mtd/altera_qspi.c
index 617bf5d72de36b8f8353c8791e3d16ce9da1b917..c7e37add018ab2d522cff3033bff74d4a0ef03e0 100644
(file)
--- a/
drivers/mtd/altera_qspi.c
+++ b/
drivers/mtd/altera_qspi.c
@@
-81,6
+81,7
@@
int flash_erase(flash_info_t *info, int s_first, int s_last)
int ret;
memset(&instr, 0, sizeof(instr));
+ instr.mtd = mtd;
instr.addr = mtd->erasesize * s_first;
instr.len = mtd->erasesize * (s_last + 1 - s_first);
ret = mtd_erase(mtd, &instr);