diff options
author | Angelo Durgehello <angelo.dureghello@timesys.com> | 2020-01-21 10:37:27 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-25 12:04:36 -0500 |
commit | 1526bcce0f7285087621e16e6720636d01839da8 (patch) | |
tree | 168d3316c1f9fec098444449d6d9b19304288e0d /include/blk.h | |
parent | 5cde44e12adc180575d5ee35ef251e0470a10598 (diff) | |
download | u-boot-1526bcce0f7285087621e16e6720636d01839da8.tar.gz u-boot-1526bcce0f7285087621e16e6720636d01839da8.tar.bz2 u-boot-1526bcce0f7285087621e16e6720636d01839da8.zip |
common: add blkcache init
On m68k, block_cache list is relocated, but next and prev list
pointers are not adjusted to the relocated struct list_head address,
so the first iteration over the block_cache list hangs.
This patch initializes the block_cache list after relocation.
Signed-off-by: Angelo Durgehello <angelo.dureghello@timesys.com>
Reviewed-by: Eric Nelson <eric@nelint.com>
Diffstat (limited to 'include/blk.h')
-rw-r--r-- | include/blk.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/blk.h b/include/blk.h index d0c033aece..65db69f5d9 100644 --- a/include/blk.h +++ b/include/blk.h @@ -113,6 +113,12 @@ struct blk_desc { (PAD_SIZE(size, blk_desc->blksz)) #if CONFIG_IS_ENABLED(BLOCK_CACHE) + +/** + * blkcache_init() - initialize the block cache list pointers + */ +int blkcache_init(void); + /** * blkcache_read() - attempt to read a set of blocks from cache * |