Skip to contentSkip to conversation

power: supply: axp288_fuel_gauge: Broaden vendor check for Intel Compute Sticks.

PATCH In review Jeffery Miller 3 participants 3 messages Feb 25, 2020 – Mar 6, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: supply: axp288_fuel_gauge: Broaden vendor check for Intel Compute Sticks.

The Intel Compute Stick STK1A32SC can have a system vendor of "Intel(R) Client Systems".
Broaden the Intel Compute Stick DMI checks so that they match "Intel Corporation" as well as "Intel(R) Client Systems".

This fixes an issue where the STK1A32SC compute sticks were still exposing a battery with the existing blacklist entry.

---

I've tested this primarily with a 4.19 kernel on Intel Compute Sticks with the "Intel(R) Client Systems" vendor.

 drivers/power/supply/axp288_fuel_gauge.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/power/supply/axp288_fuel_gauge.c +2 -2
index e1bc4e6e6f30..f40fa0e63b6e 100644
@@ -706,14 +706,14 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
 	{
 		/* Intel Cherry Trail Compute Stick, Windows version */
 		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
+			DMI_MATCH(DMI_SYS_VENDOR, "Intel"),
 			DMI_MATCH(DMI_PRODUCT_NAME, "STK1AW32SC"),
 		},
 	},
 	{
 		/* Intel Cherry Trail Compute Stick, version without an OS */
 		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
+			DMI_MATCH(DMI_SYS_VENDOR, "Intel"),
 			DMI_MATCH(DMI_PRODUCT_NAME, "STK1A32SC"),
 		},
 	},
Signature · 1 line
2.24.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 9 lines · Jeffery Miller

The Intel Compute Stick STK1A32SC can have a system vendor of "Intel(R) Client Systems".
Broaden the Intel Compute Stick DMI checks so that they match "Intel Corporation" as well as "Intel(R) Client Systems".

This fixes an issue where the STK1A32SC compute sticks were still exposing a battery with the existing blacklist entry.

Thank you for the patch. The patch looks good to me:

Regards,

Hans

Quoted 30 lines

---

I've tested this primarily with a 4.19 kernel on Intel Compute Sticks with the "Intel(R) Client Systems" vendor.

  drivers/power/supply/axp288_fuel_gauge.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/power/supply/axp288_fuel_gauge.c +2 -2
index e1bc4e6e6f30..f40fa0e63b6e 100644
@@ -706,14 +706,14 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
  	{
  		/* Intel Cherry Trail Compute Stick, Windows version */
  		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
+			DMI_MATCH(DMI_SYS_VENDOR, "Intel"),
  			DMI_MATCH(DMI_PRODUCT_NAME, "STK1AW32SC"),
  		},
  	},
  	{
  		/* Intel Cherry Trail Compute Stick, version without an OS */
  		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
+			DMI_MATCH(DMI_SYS_VENDOR, "Intel"),
  			DMI_MATCH(DMI_PRODUCT_NAME, "STK1A32SC"),
  		},
  	},
#2 lore raw

Hi,

Quoted 6 lines · Hans de Goede
Quoted 5 lines · Jeffery Miller

The Intel Compute Stick STK1A32SC can have a system vendor of "Intel(R) Client Systems".
Broaden the Intel Compute Stick DMI checks so that they match "Intel Corporation" as well as "Intel(R) Client Systems".

Quoted 8 lines
Quoted 4 lines

This fixes an issue where the STK1A32SC compute sticks were still exposing a battery with the existing blacklist entry.

Thank you for the patch. The patch looks good to me:

Thanks, queued.

-- Sebastian

Quoted 31 lines
Quoted 30 lines

---

I've tested this primarily with a 4.19 kernel on Intel Compute Sticks with the "Intel(R) Client Systems" vendor.

  drivers/power/supply/axp288_fuel_gauge.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/power/supply/axp288_fuel_gauge.c +2 -2
index e1bc4e6e6f30..f40fa0e63b6e 100644
@@ -706,14 +706,14 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
  	{
  		/* Intel Cherry Trail Compute Stick, Windows version */
  		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
+			DMI_MATCH(DMI_SYS_VENDOR, "Intel"),
  			DMI_MATCH(DMI_PRODUCT_NAME, "STK1AW32SC"),
  		},
  	},
  	{
  		/* Intel Cherry Trail Compute Stick, version without an OS */
  		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
+			DMI_MATCH(DMI_SYS_VENDOR, "Intel"),
  			DMI_MATCH(DMI_PRODUCT_NAME, "STK1A32SC"),
  		},
  	},