Bug 205389 - AXP288 fuel gauge reports bogus battery info for the Meegopad T02
Summary: AXP288 fuel gauge reports bogus battery info for the Meegopad T02
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-02 16:21 UTC by Rafael Gandolfi
Modified: 2020-01-03 21:05 UTC (History)
2 users (show)

See Also:
Kernel Version: v5.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
patch for adding the meegopadt02 to the axp288_fuel_gauge blacklist (960 bytes, application/mbox)
2019-11-02 16:21 UTC, Rafael Gandolfi
Details

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

Note You need to log in before you can comment on or make changes to this bug.