summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorWeijie Gao <weijie.gao@mediatek.com>2019-08-27 15:32:18 +0800
committerTom Rini <trini@konsulko.com>2019-08-30 14:17:11 -0400
commit1ce884797cb382c26afce8a62e4cc790dba6bb24 (patch)
tree626608fae8bdd5f8c167832d81a5e9c22891a80e /include/linux
parent5e0404ff85fca50b5ac41bf08bbe46e6de4903e7 (diff)
downloadu-boot-1ce884797cb382c26afce8a62e4cc790dba6bb24.tar.gz
u-boot-1ce884797cb382c26afce8a62e4cc790dba6bb24.tar.xz
u-boot-1ce884797cb382c26afce8a62e4cc790dba6bb24.zip
Revert "blk: Invalidate block cache when switching hwpart"
This reverts commit 0ebe112d09b48230ba4be833cd3504b06997d9a4. Most block devices have only one hwpart. Multiple hwparts only found used by eMMC devices in u-boot. The mmc driver do blk_dselect_hwpart() at the beginning of mmc_bread() which causes block cache being invalidated too frequently and makes block cache useless. So it's not a good idea to put blkcache_invalidate() in the common functions. It should be called inside mmc_select_hwpart(). Signed-off-by: Weijie Gao <weijie.gao@mediatek.com> Tested-by: Felix Brack <fb@ltec.ch>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions