]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: cros_charge-control: don't load if Framework control is present
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 30 Jun 2024 20:54:12 +0000 (22:54 +0200)
committerTzung-Bi Shih <tzungbi@kernel.org>
Mon, 1 Jul 2024 13:22:19 +0000 (21:22 +0800)
commit3664706e875f84bd4e3fa25ed1c6e46934cb32cd
tree30939968db2e52e90b4c041331bdc775e70e8617
parentc6ed48ef52599098498a8442fd60bea5bd8cd309
power: supply: cros_charge-control: don't load if Framework control is present

Framework laptops implement a custom charge control EC command.
The upstream CrOS EC command is also present and functional but can get
overridden by the custom one.

Until Framework make both commands compatible or remove their custom
one, don't load the driver on those machines.

If the user knows they are not going to use the custom command they can
use a module parameter to load cros_charge-control anyways.

Note that the UEFI setup configuration for battery control also uses
their custom command.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20240630-cros_ec-charge-control-v5-5-8f649d018c52@weissschuh.net
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
drivers/power/supply/cros_charge-control.c