platform/surface: Disable for RISC-V
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 15 May 2023 05:49:09 +0000 (11:19 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 1 Jun 2023 15:44:57 +0000 (08:44 -0700)
With CONFIG_ACPI enabled for RISC-V, this driver gets enabled
in allmodconfig build. However, RISC-V doesn't support sub-word
atomics which is used by this driver and hence allmodconfig
build will fail.

There is currently no plan to support this driver for RISC-V. So,
disable this driver for RISC-V even when ACPI is enabled.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20230515054928.2079268-3-sunilvl@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
drivers/platform/surface/aggregator/Kconfig

index c114f9dd5fe1ce96d55d1f337efa2aaf31367259..88afc38ffdc5c2823fbf0fb4058b06d271aee4a9 100644 (file)
@@ -4,7 +4,7 @@
 menuconfig SURFACE_AGGREGATOR
        tristate "Microsoft Surface System Aggregator Module Subsystem and Drivers"
        depends on SERIAL_DEV_BUS
-       depends on ACPI
+       depends on ACPI && !RISCV
        select CRC_CCITT
        help
          The Surface System Aggregator Module (Surface SAM or SSAM) is an