Bug 205389

Summary: AXP288 fuel gauge reports bogus battery info for the Meegopad T02
Product: Drivers Reporter: Rafael Gandolfi (kaillasse91)
Component: OtherAssignee: drivers_other
Status: NEW ---    
Severity: normal CC: rui.zhang, sre
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: v5.3 Subsystem:
Regression: No Bisected commit-id:
Attachments: patch for adding the meegopadt02 to the axp288_fuel_gauge blacklist

Description Rafael Gandolfi 2019-11-02 16:21:23 UTC
Created attachment 285751 [details]
patch for adding the meegopadt02 to the axp288_fuel_gauge blacklist

Hi, 
the meegopad t02 is a compute-stick like device without battery but a discharging battery is detected:

#cat /sys/class/power_supply/axp288_fuel_gauge/charge_now 
3513328
#cat /sys/class/power_supply/axp288_fuel_gauge/charge_full
3798704

In attachement there is a patch that is working for my device.


#dmidecode | grep -B 2 -i product
System Information
	Manufacturer: MEEGOPAD
	Product Name: MEEGOPAD T02
--
Base Board Information
	Manufacturer: AMI Corporation
	Product Name: Z3735F-T02



Also the charger is also detected as not plugged in :

#cat /sys/class/power_supply/axp288_charger/present 
1
#cat /sys/class/power_supply/axp288_charger/online 
0
Comment 1 Zhang Rui 2019-12-29 03:11:40 UTC
I'd suggest you run get_maintainer.pl and submit the patch directly.
Comment 2 Rafael Gandolfi 2020-01-01 18:11:33 UTC
Yes I will do this, any idea about the axp288_charger problem ?
Comment 3 Zhang Rui 2020-01-02 03:14:36 UTC
I'm not familiar with the charger driver.
Sebastian Reichel <sre@kernel.org>, the power_supply class Maintainer is CCed in this thread as I didn't find a proper category for the power_supply driver issue.
Comment 4 Sebastian Reichel 2020-01-03 21:03:06 UTC
Hi,

Please submit the patch normally and additionally add Hans de Goede to Cc, who had to deal with the axp288 blacklist before.

Thanks,

-- Sebastian
Comment 5 Sebastian Reichel 2020-01-03 21:05:21 UTC
Some notes about the patch:

 * Missing Signed-off-by
 * Incomplete Name in "From: " line
 * Subject needs to be splitted into Subject line and long description