Skip to content

Commit 0674188

Browse files
chenhuacairafaeljw
authored andcommitted
ACPI: EC: Enable EC support on LoongArch by default
Commit a6021aa ("ACPI: EC: make EC support compile-time conditional") only enable ACPI_EC on X86 by default, but the embedded controller is also widely used on LoongArch laptops so we also enable ACPI_EC for LoongArch. The laptop driver cannot work without EC, so also update the dependency of LOONGSON_LAPTOP to let it depend on APCI_EC. Fixes: a6021aa ("ACPI: EC: make EC support compile-time conditional") Reported-by: Xiaotian Wu <wuxiaotian@loongson.cn> Tested-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Link: https://patch.msgid.link/20241217073704.3339587-1-chenhuacai@loongson.cn [ rjw: Added Fixes: ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 78d4f34 commit 0674188

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/acpi/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ config ACPI_REV_OVERRIDE_POSSIBLE
135135
config ACPI_EC
136136
bool "Embedded Controller"
137137
depends on HAS_IOPORT
138-
default X86
138+
default X86 || LOONGARCH
139139
help
140140
This driver handles communication with the microcontroller
141-
on many x86 laptops and other machines.
141+
on many x86/LoongArch laptops and other machines.
142142

143143
config ACPI_EC_DEBUGFS
144144
tristate "EC read/write access through /sys/kernel/debug/ec"

drivers/platform/loongarch/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if LOONGARCH_PLATFORM_DEVICES
1818

1919
config LOONGSON_LAPTOP
2020
tristate "Generic Loongson-3 Laptop Driver"
21-
depends on ACPI
21+
depends on ACPI_EC
2222
depends on BACKLIGHT_CLASS_DEVICE
2323
depends on INPUT
2424
depends on MACH_LOONGSON64

0 commit comments

Comments
 (0)