All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] power: supply: axp288_fuel_gauge: Broaden vendor check for Intel Compute Sticks.
@ 2020-02-25 22:59 Jeffery Miller
  2020-02-26 12:36 ` Hans de Goede
  0 siblings, 1 reply; 3+ messages in thread
From: Jeffery Miller @ 2020-02-25 22:59 UTC (permalink / raw)
  To: linux-pm; +Cc: Hans de Goede, jefferym, 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.

Signed-off-by: Jeffery Miller <jmiller@neverware.com>
---

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(-)

diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c
index e1bc4e6e6f30..f40fa0e63b6e 100644
--- a/drivers/power/supply/axp288_fuel_gauge.c
+++ b/drivers/power/supply/axp288_fuel_gauge.c
@@ -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.24.1


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

* Re: [PATCH] power: supply: axp288_fuel_gauge: Broaden vendor check for Intel Compute Sticks.
  2020-02-25 22:59 [PATCH] power: supply: axp288_fuel_gauge: Broaden vendor check for Intel Compute Sticks Jeffery Miller
@ 2020-02-26 12:36 ` Hans de Goede
  2020-03-06 20:50   ` Sebastian Reichel
  0 siblings, 1 reply; 3+ messages in thread
From: Hans de Goede @ 2020-02-26 12:36 UTC (permalink / raw)
  To: Jeffery Miller, linux-pm; +Cc: jefferym

Hi,

On 2/25/20 11:59 PM, Jeffery Miller wrote:
> 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.
> 
> Signed-off-by: Jeffery Miller <jmiller@neverware.com>

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

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans





> ---
> 
> 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(-)
> 
> diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c
> index e1bc4e6e6f30..f40fa0e63b6e 100644
> --- a/drivers/power/supply/axp288_fuel_gauge.c
> +++ b/drivers/power/supply/axp288_fuel_gauge.c
> @@ -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"),
>   		},
>   	},
> 


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

* Re: [PATCH] power: supply: axp288_fuel_gauge: Broaden vendor check for Intel Compute Sticks.
  2020-02-26 12:36 ` Hans de Goede
@ 2020-03-06 20:50   ` Sebastian Reichel
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2020-03-06 20:50 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Jeffery Miller, linux-pm, jefferym

[-- Attachment #1: Type: text/plain, Size: 1875 bytes --]

Hi,

On Wed, Feb 26, 2020 at 01:36:53PM +0100, Hans de Goede wrote:
> On 2/25/20 11:59 PM, Jeffery Miller wrote:
> > 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.
> > 
> > Signed-off-by: Jeffery Miller <jmiller@neverware.com>
> 
> Thank you for the patch. The patch looks good to me:
> 
> Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Thanks, queued.

-- Sebastian

> > ---
> > 
> > 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(-)
> > 
> > diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c
> > index e1bc4e6e6f30..f40fa0e63b6e 100644
> > --- a/drivers/power/supply/axp288_fuel_gauge.c
> > +++ b/drivers/power/supply/axp288_fuel_gauge.c
> > @@ -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"),
> >   		},
> >   	},
> > 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2020-03-06 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-25 22:59 [PATCH] power: supply: axp288_fuel_gauge: Broaden vendor check for Intel Compute Sticks Jeffery Miller
2020-02-26 12:36 ` Hans de Goede
2020-03-06 20:50   ` Sebastian Reichel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.