mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] power: supply: bq27xxx: Call power_supply_changed on status change
@ 2018-02-28  1:04 Merlijn Wajer
  2018-02-28  1:04 ` [RFC PATCH 1/1] " Merlijn Wajer
  0 siblings, 1 reply; 3+ messages in thread
From: Merlijn Wajer @ 2018-02-28  1:04 UTC (permalink / raw)
  To: linux-omap
  Cc: merlijn, Pali Rohár, Andrew F. Davis, Sebastian Reichel,
	Liam Breck, Matt Ranostay, Greg Kroah-Hartman, linux-pm,
	linux-kernel

Hi,

It seems that bq27xxx_battery_update does not call power_supply_changed when the
charging status changes, and instead only when the capacity changes.

This can cause considerable delays in reporting charging status changes to
userspace. This patch turns the battery status reading function into one that
returns the value directly (as other *_read functions), adds the status to the
cache, uses the cache when reporting the values and finally will trigger
power_supply_changed when the charging status changes.

There is still a noticable delay in detecting charger status, but that seems to
have a different cause.

Cheers,
Merlijn

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-28  5:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28  1:04 [RFC PATCH 0/1] power: supply: bq27xxx: Call power_supply_changed on status change Merlijn Wajer
2018-02-28  1:04 ` [RFC PATCH 1/1] " Merlijn Wajer
2018-02-28  5:58   ` Matt Ranostay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®