Message ID | 20220502111235.331877-2-hdegoede@redhat.com (mailing list archive) |
---|---|
State | Handled Elsewhere, archived |
Headers | show |
Series | [1/2] power: supply: axp288_fuel_gauge: Fix battery reporting on the One Mix 1 | expand |
Hi, On Mon, May 02, 2022 at 01:12:35PM +0200, Hans de Goede wrote: > Some "T3 MRD" mini-PCs / HDMI-sticks without a battery use a different > value then "5.11" for their DMI BIOS version field. > > Drop the BIOS version check so that the no-battery "T3 MRD" DMI quirk > applies to these too. > > Fixes: 3a06b912a5ce ("power: supply: axp288_fuel_gauge: Make "T3 MRD" no_battery_list DMI entry more generic") > Signed-off-by: Hans de Goede <hdegoede@redhat.com> > --- Thanks, queued to my fixes branch. -- Sebastian > drivers/power/supply/axp288_fuel_gauge.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c > index 5b8aa4a980cd..8e6f8a655079 100644 > --- a/drivers/power/supply/axp288_fuel_gauge.c > +++ b/drivers/power/supply/axp288_fuel_gauge.c > @@ -609,7 +609,6 @@ static const struct dmi_system_id axp288_quirks[] = { > DMI_MATCH(DMI_BOARD_NAME, "T3 MRD"), > DMI_MATCH(DMI_CHASSIS_TYPE, "3"), > DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."), > - DMI_MATCH(DMI_BIOS_VERSION, "5.11"), > }, > .driver_data = (void *)AXP288_QUIRK_NO_BATTERY, > }, > -- > 2.36.0 >
diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c index 5b8aa4a980cd..8e6f8a655079 100644 --- a/drivers/power/supply/axp288_fuel_gauge.c +++ b/drivers/power/supply/axp288_fuel_gauge.c @@ -609,7 +609,6 @@ static const struct dmi_system_id axp288_quirks[] = { DMI_MATCH(DMI_BOARD_NAME, "T3 MRD"), DMI_MATCH(DMI_CHASSIS_TYPE, "3"), DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."), - DMI_MATCH(DMI_BIOS_VERSION, "5.11"), }, .driver_data = (void *)AXP288_QUIRK_NO_BATTERY, },
Some "T3 MRD" mini-PCs / HDMI-sticks without a battery use a different value then "5.11" for their DMI BIOS version field. Drop the BIOS version check so that the no-battery "T3 MRD" DMI quirk applies to these too. Fixes: 3a06b912a5ce ("power: supply: axp288_fuel_gauge: Make "T3 MRD" no_battery_list DMI entry more generic") Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- drivers/power/supply/axp288_fuel_gauge.c | 1 - 1 file changed, 1 deletion(-)