Skip to contentSkip to conversation

power: supply: axp288_fuel_gauge: Add the Meegopad T02 to the blacklist.

PATCH In review rafirafi 3 participants 3 messages Apr 6, 2020 – Apr 13, 2020

Subsystems (3)
lore
Share & tools
lore

rafirafi

author
#0 lore raw

PATCH 1/1 power: supply: axp288_fuel_gauge: Add the Meegopad T02 to the blacklist.

From: Rafael Gandolfi <[email protected]>

The Meegopad T02 is a PC in stick format and doesn't have a battery, it is reported with a random and constant battery charge but as discharging to userspace.

Add it to the blacklist to avoid the bogus battery status reporting.

---
 drivers/power/supply/axp288_fuel_gauge.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/power/supply/axp288_fuel_gauge.c +6 -0
index e1bc4e6e6f30..0bc548865a61 100644
@@ -717,6 +717,12 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "STK1A32SC"),
 		},
 	},
+	{
+		/* Meegopad T02 */
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "MEEGOPAD T02"),
+		},
+	},
 	{
 		/* Meegopad T08 */
 		.matches = {
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 9 lines · rafirafi

From: Rafael Gandolfi <[email protected]>

The Meegopad T02 is a PC in stick format and doesn't have a battery, it is reported with a random and constant battery charge but as discharging to userspace.

Add it to the blacklist to avoid the bogus battery status reporting.

Patch looks good to me:

Regards,

Hans

Quoted 22 lines
---
  drivers/power/supply/axp288_fuel_gauge.c | 6 ++++++
  1 file changed, 6 insertions(+)
drivers/power/supply/axp288_fuel_gauge.c +6 -0
index e1bc4e6e6f30..0bc548865a61 100644
@@ -717,6 +717,12 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
  			DMI_MATCH(DMI_PRODUCT_NAME, "STK1A32SC"),
  		},
  	},
+	{
+		/* Meegopad T02 */
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "MEEGOPAD T02"),
+		},
+	},
  	{
  		/* Meegopad T08 */
  		.matches = {
#2 lore raw

Hi,

Quoted 9 lines · Hans de Goede

Hi,

Quoted 6 lines · rafirafi

From: Rafael Gandolfi <[email protected]>

The Meegopad T02 is a PC in stick format and doesn't have a battery, it is reported with a random and constant battery charge but as discharging to userspace.

Quoted 7 lines
Quoted 3 lines

Add it to the blacklist to avoid the bogus battery status reporting.

Patch looks good to me:

Thanks, queued.

-- Sebastian

Quoted 23 lines
Quoted 22 lines
---
  drivers/power/supply/axp288_fuel_gauge.c | 6 ++++++
  1 file changed, 6 insertions(+)
drivers/power/supply/axp288_fuel_gauge.c +6 -0
index e1bc4e6e6f30..0bc548865a61 100644
@@ -717,6 +717,12 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
  			DMI_MATCH(DMI_PRODUCT_NAME, "STK1A32SC"),
  		},
  	},
+	{
+		/* Meegopad T02 */
+		.matches = {
+			DMI_MATCH(DMI_PRODUCT_NAME, "MEEGOPAD T02"),
+		},
+	},
  	{
  		/* Meegopad T08 */
  		.matches = {