Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: msi-ec: Fix the 3rd config

Fix the charge control address of CONF3 and remove an incorrect firmware
version which turned out to be a BIOS firmware and not an EC firmware.

Fixes: 392cacf2aa10 ("platform/x86: Add new msi-ec driver")
Cc: Aakash Singh <mail@singhaakash.dev>
Cc: Jose Angel Pastrana <japp0005@red.ujaen.es>
Signed-off-by: Nikita Kravets <teackot@gmail.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231006175352.1753017-5-teackot@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Nikita Kravets and committed by
Hans de Goede
6284e67a 4d73c677

+1 -2
+1 -2
drivers/platform/x86/msi-ec.c
··· 276 276 277 277 static const char * const ALLOWED_FW_3[] __initconst = { 278 278 "1592EMS1.111", 279 - "E1592IMS.10C", 280 279 NULL 281 280 }; 282 281 283 282 static struct msi_ec_conf CONF3 __initdata = { 284 283 .allowed_fw = ALLOWED_FW_3, 285 284 .charge_control = { 286 - .address = 0xef, 285 + .address = 0xd7, 287 286 .offset_start = 0x8a, 288 287 .offset_end = 0x80, 289 288 .range_min = 0x8a,