]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
cache: StarFive: Require a 64-bit system
authorPalmer Dabbelt <palmer@rivosinc.com>
Mon, 22 Jul 2024 15:45:20 +0000 (08:45 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 1 Aug 2024 14:15:02 +0000 (07:15 -0700)
This has a bunch of {read,write}q() calls, so it won't work on 32-bit
systems.  I don't think there's any 32-bit StarFive systems, so for now
just require 64-bit.

Fixes: cabff60ca77d ("cache: Add StarFive StarLink cache management")
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Link: https://lore.kernel.org/r/20240722154519.25375-2-palmer@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
drivers/cache/Kconfig

index 94abd8f632a7b3eb02b7e387402cee431009ee8a..db51386c663a6640dad549ce427c02c19d0bd62e 100644 (file)
@@ -18,6 +18,7 @@ config STARFIVE_STARLINK_CACHE
        bool "StarFive StarLink Cache controller"
        depends on RISCV
        depends on ARCH_STARFIVE
+       depends on 64BIT
        select RISCV_DMA_NONCOHERENT
        select RISCV_NONSTANDARD_CACHE_OPS
        help