riscv: check for kernel config option in t-head memory types errata
authorHeiko Stuebner <heiko@sntech.de>
Mon, 5 Sep 2022 11:10:27 +0000 (13:10 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 13 Oct 2022 15:46:30 +0000 (08:46 -0700)
commit14057733109dcc83c35a6730f3b7112aac4d2b82
tree754cd9b0b4f6a325a5839116b093250673e1849e
parente283187c034cd80c1dd98ad732c73ce930a5efa4
riscv: check for kernel config option in t-head memory types errata

The t-head variant of page-based memory types should also check first
for the enabled kernel config option.

Fixes: a35707c3d850 ("riscv: add memory-type errata for T-Head")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20220905111027.2463297-6-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/errata/thead/errata.c