common: add blkcache init
authorAngelo Durgehello <angelo.dureghello@timesys.com>
Tue, 21 Jan 2020 09:37:27 +0000 (10:37 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 25 Jan 2020 17:04:36 +0000 (12:04 -0500)
commit1526bcce0f7285087621e16e6720636d01839da8
tree168d3316c1f9fec098444449d6d9b19304288e0d
parent5cde44e12adc180575d5ee35ef251e0470a10598
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>
common/board_r.c
drivers/block/blkcache.c
include/blk.h