linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bq24190_charger: no status updates
@ 2015-05-28  9:05 Thomas Elste
  2015-05-28  9:05 ` [PATCH] power: bq24190_charger: Change first_time flag reset condition Thomas Elste
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Elste @ 2015-05-28  9:05 UTC (permalink / raw)
  To: linux-pm; +Cc: thomas.elste

Hi,

while searching for the cause of charger events not being detected on a
custom board with a BQ24190 charger, I think a found a minor problem in
its driver:

The bq24190_charger driver uses a flag for preventing the first change
in charger status, which is generated by an initial register clear, to
reach power supply subsystem via power_supply_changed. This flag is set
in the probe function and is supposed to be reset after a first status
change. This never happens as the condition for reset depends already
on the flag not being set.

I made a short patch which changes the flags reset condition.

Best regards
Thomas


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

end of thread, other threads:[~2015-05-29  2:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-28  9:05 bq24190_charger: no status updates Thomas Elste
2015-05-28  9:05 ` [PATCH] power: bq24190_charger: Change first_time flag reset condition Thomas Elste
2015-05-29  2:34   ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).