Charging status for N900/RX-51 with bq27200

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On my N900, with kernel 4.15-rc6 (I realise it's not the very latest),
the (charging) status of the battery is confusing or plain wrong:

When no charger is connected, this is reported:

# cat
/sys/devices/platform/68000000.ocp/48072000.i2c/i2c-2/2-0055/power_supply/bq27200-0/status
Not charging

When a charged is connected, this is reported:

# cat
/sys/devices/platform/68000000.ocp/48072000.i2c/i2c-2/2-0055/power_supply/bq27200-0/status
Charging

The odd part here is "Not charging" -- on all my other devices, a device
that is discharging is reported as "Discharging", not as "Not charging".

On the Morotola Droid 4, this is reported as:

# cat
/sys/devices/platform/44000000.ocp/48098000.spi/spi_master/spi0/spi0.0/48098000.spi:pmic@0:battery/power_supply/battery/status
Charging

# cat
/sys/devices/platform/44000000.ocp/48098000.spi/spi_master/spi0/spi0.0/48098000.spi:pmic@0:battery/power_supply/battery/status
Discharging

The same is true for my ARM exynos chromebook - also "Charging" and
"Discharging".

The N900 reporting "Not charging" when it is in fact discharging
confuses userspace, such as UPower.

I am not particularly versed in the N900/RX-51 drivers, but from a quick
glance this line looks suspicious [1].

Cheers,
Merlijn

[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/power/supply/bq27xxx_battery.c#n1673

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux