Searched hist:"91199 f4a5a21a7cf9dd9e7c05e295a042f8c2b7e" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_mmc.c | 9d3b56544137b1390b235ed0991a3b5740ceb208 Thu May 21 22:57:16 UTC 2015 Tim Harvey <tharvey@gateworks.com> spl: spl_mmc: fix mmc Falcon mode regression
91199f4a5a21a7cf9dd9e7c05e295a042f8c2b7e broke mmc based Falcon mode.
The block_read function returns the number of blocks read thus the error check needs to look for a return of 0 blocks read.
Cc: Paul Kocialkowski <contact@paulk.fr> Signed-off-by: Tim Harvey <tharvey@gateworks.com> Acked-by: Paul Kocialkowski <contact@paulk.fr> 91199f4a5a21a7cf9dd9e7c05e295a042f8c2b7e Mon Apr 27 08:20:22 UTC 2015 Paul Kocialkowski <contact@paulk.fr> spl: spl_mmc: Clearer structure in spl_mmc_load_image and cosmetics
This refactors spl_mmc_load_image to use a switch/case structure and easier to understand spl_start_uboot checks. This also introduces some more automatic fallback on the next mmc boot mode as long as it keeps failing.
Lines that go beyond 80 chars are also reduced by reducing the number of tabs. Debug and error strings are refctored to match a common style.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr> [trini: Fix a thinko in the SPL_EXT_SUPPORT + SPL_OS conversion, make part be __maybe_unused] Signed-off-by: Tom Rini <trini@konsulko.com>
|