mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: msi-ec: Add MSI Katana 15 B13VFK EC firmware
@ 2026-09-25 12:56 Patryk Pilichowski
  2026-10-05 18:52 ` Ilpo Järvinen
  0 siblings, 1 reply; 2+ messages in thread
From: Patryk Pilichowski @ 2026-09-25 12:56 UTC (permalink / raw)
  To: teackot, hansg, Ilpo Järvinen
  Cc: platform-driver-x86, linux-kernel, Patryk Pilichowski

Add the EC firmware string '1585EMS1.115' to ALLOWED_FW_10. This
enables battery charge thresholds on the MSI Katana 15 B13VFK
(MS-1585).

The out-of-tree msi-ec driver groups this firmware with 1582EMS1.107
and 1583EMS1.109, which are already in ALLOWED_FW_10. An independent
report for the same model and firmware confirms the same charge
control encoding.

Tested on MSI Katana 15 B13VFK with EC firmware 1585EMS1.115:
writing charge_control_end_threshold updates EC register 0xd7 as
expected (80 -> 0xd0, 100 -> 0xe4). With AC connected and the
battery at 87%, the battery was charging with the threshold at 100;
writing 80 stopped charging ("Not charging"). Charging resumes 10%
below the end threshold, which matches charge_control_start_threshold.
Keyboard backlight (0xd3) and cooler boost (0x98) also match this
configuration.

Link: https://github.com/BeardOverflow/msi-ec/issues/185
Signed-off-by: Patryk Pilichowski <pat.pilichowski@gmail.com>
---
 drivers/platform/x86/msi-ec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/msi-ec.c b/drivers/platform/x86/msi-ec.c
index 566dfc73c..6d6a797ee 100644
--- a/drivers/platform/x86/msi-ec.c
+++ b/drivers/platform/x86/msi-ec.c
@@ -825,6 +825,7 @@ static struct msi_ec_conf CONF9 __initdata = {
 static const char * const ALLOWED_FW_10[] __initconst = {
 	"1582EMS1.107", // GF66 11UC
 	"1583EMS1.109", // Pulse GL66 12UEK
+	"1585EMS1.115", // Katana 15 B13VFK
 	NULL
 };
 

base-commit: f475845eaf3d749114a63270bf2efea459e14dd2
-- 
2.55.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] platform/x86: msi-ec: Add MSI Katana 15 B13VFK EC firmware
  2026-09-25 12:56 [PATCH] platform/x86: msi-ec: Add MSI Katana 15 B13VFK EC firmware Patryk Pilichowski
@ 2026-10-05 18:52 ` Ilpo Järvinen
  0 siblings, 0 replies; 2+ messages in thread
From: Ilpo Järvinen @ 2026-10-05 18:52 UTC (permalink / raw)
  To: teackot, hansg, Patryk Pilichowski; +Cc: platform-driver-x86, linux-kernel

On Fri, 25 Sep 2026 14:56:28 +0200, Patryk Pilichowski wrote:

> Add the EC firmware string '1585EMS1.115' to ALLOWED_FW_10. This
> enables battery charge thresholds on the MSI Katana 15 B13VFK
> (MS-1585).
> 
> The out-of-tree msi-ec driver groups this firmware with 1582EMS1.107
> and 1583EMS1.109, which are already in ALLOWED_FW_10. An independent
> report for the same model and firmware confirms the same charge
> control encoding.
> 
> [...]

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

The list of commits applied:
[1/1] platform/x86: msi-ec: Add MSI Katana 15 B13VFK EC firmware
      commit: 25143e0d2be3a1ea74d62e0ec2c7e42967267f0f

--
 i.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-05 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 12:56 [PATCH] platform/x86: msi-ec: Add MSI Katana 15 B13VFK EC firmware Patryk Pilichowski
2026-10-05 18:52 ` Ilpo Järvinen

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®