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:
b026542
)
spl: spi: Add a debug message if loading fails
author
Simon Glass
<
[email protected]
>
Mon, 16 Jan 2017 14:03:27 +0000
(07:03 -0700)
committer
Bin Meng
<
[email protected]
>
Mon, 6 Feb 2017 03:38:46 +0000
(11:38 +0800)
This currently fails silently. Add a debug message to aid debugging.
Signed-off-by: Simon Glass <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
common/spl/spl_spi.c
patch
|
blob
|
history
diff --git
a/common/spl/spl_spi.c
b/common/spl/spl_spi.c
index cd1d6b285ef02a6cac36defcc485c899b5b2db8f..925a1b149157bf337b9983c7aeddb19a5d789ce9 100644
(file)
--- a/
common/spl/spl_spi.c
+++ b/
common/spl/spl_spi.c
@@
-96,8
+96,11
@@
static int spl_spi_load_image(struct spl_image_info *spl_image,
/* Load u-boot, mkimage header is 64 bytes. */
err = spi_flash_read(flash, CONFIG_SYS_SPI_U_BOOT_OFFS, 0x40,
(void *)header);
- if (err)
+ if (err) {
+ debug("%s: Failed to read from SPI flash (err=%d)\n",
+ __func__, err);
return err;
+ }
if (IS_ENABLED(CONFIG_SPL_LOAD_FIT) &&
image_get_magic(header) == FDT_MAGIC) {