Skip to content

Commit 392cacf

Browse files
teackotjwrdegoede
authored andcommitted
platform/x86: Add new msi-ec driver
Add a new driver to allow various MSI laptops' functionalities to be controlled from userspace. This includes such features as power profiles (aka shift modes), fan speed, charge thresholds, LEDs, etc. This driver contains EC memory configurations for different firmware versions and exports battery charge thresholds to userspace (note, that start and end thresholds control the same EC parameter and are always 10% apart). Link: https://github.com/BeardOverflow/msi-ec/ Link: BeardOverflow/msi-ec#13 Cc: Aakash Singh <[email protected]> Cc: Jose Angel Pastrana <[email protected]> Signed-off-by: Nikita Kravets <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent fd5aada commit 392cacf

File tree

5 files changed

+1035
-0
lines changed

5 files changed

+1035
-0
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14138,6 +14138,13 @@ S: Odd Fixes
1413814138
F: Documentation/devicetree/bindings/net/ieee802154/mrf24j40.txt
1413914139
F: drivers/net/ieee802154/mrf24j40.c
1414014140

14141+
MSI EC DRIVER
14142+
M: Nikita Kravets <[email protected]>
14143+
14144+
S: Maintained
14145+
W: https://github.com/BeardOverflow/msi-ec
14146+
F: drivers/platform/x86/msi-ec.*
14147+
1414114148
MSI LAPTOP SUPPORT
1414214149
M: "Lee, Chun-Yi" <[email protected]>
1414314150

drivers/platform/x86/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,14 @@ config THINKPAD_LMI
635635

636636
source "drivers/platform/x86/intel/Kconfig"
637637

638+
config MSI_EC
639+
tristate "MSI EC Extras"
640+
depends on ACPI
641+
depends on ACPI_BATTERY
642+
help
643+
This driver allows various MSI laptops' functionalities to be
644+
controlled from userspace, including battery charge threshold.
645+
638646
config MSI_LAPTOP
639647
tristate "MSI Laptop Extras"
640648
depends on ACPI

drivers/platform/x86/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ obj-$(CONFIG_THINKPAD_LMI) += think-lmi.o
7070
obj-y += intel/
7171

7272
# MSI
73+
obj-$(CONFIG_MSI_EC) += msi-ec.o
7374
obj-$(CONFIG_MSI_LAPTOP) += msi-laptop.o
7475
obj-$(CONFIG_MSI_WMI) += msi-wmi.o
7576

0 commit comments

Comments
 (0)