mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: ayaneo-ec: Enable charge control on Flip KB
@ 2026-11-08  2:03 Hijae Song
  0 siblings, 0 replies; only message in thread
From: Hijae Song @ 2026-11-08  2:03 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen
  Cc: Antheas Kapenekakis, platform-driver-x86, linux-kernel, Hijae Song

Flip KB was matched to quirk_fan (fan control only), the same
quirk used for boards without a working charge-limit EC
interface. Testing on real hardware shows the charge-limit
register works identically to AIR/AIR 1S/KUN, so switch it to
quirk_charge_limit.

Verified on real hardware: switching charge_behaviour to
inhibit-charge stops the charge current (status: Not charging,
power_now: 0), and switching back to auto resumes charging.

Signed-off-by: Hijae Song <hijae99@gmail.com>
---
 drivers/platform/x86/ayaneo-ec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/ayaneo-ec.c b/drivers/platform/x86/ayaneo-ec.c
index 41a24e09..6fe2387d 100644
--- a/drivers/platform/x86/ayaneo-ec.c
+++ b/drivers/platform/x86/ayaneo-ec.c
@@ -88,7 +88,7 @@ static const struct dmi_system_id dmi_table[] = {
 			DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
 			DMI_MATCH(DMI_BOARD_NAME, "FLIP"),
 		},
-		.driver_data = (void *)&quirk_fan,
+		.driver_data = (void *)&quirk_charge_limit,
 	},
 	{
 		.matches = {
-- 
2.54.0 (Apple Git-157)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-08  2:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08  2:03 [PATCH] platform/x86: ayaneo-ec: Enable charge control on Flip KB Hijae Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®