From: Merlijn Wajer <merlijn@wizzup.org>
To: linux-omap@vger.kernel.org
Cc: merlijn@wizzup.org, "Pali Rohár" <pali.rohar@gmail.com>,
"Andrew F. Davis" <afd@ti.com>,
"Sebastian Reichel" <sre@kernel.org>,
"Liam Breck" <kernel@networkimprov.net>,
"Matt Ranostay" <matt.ranostay@konsulko.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [RFC PATCH 0/1] power: supply: bq27xxx: Call power_supply_changed on status change
Date: Wed, 28 Feb 2018 02:04:43 +0100 [thread overview]
Message-ID: <20180228010452.1713-1-merlijn@wizzup.org> (raw)
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
next reply other threads:[~2018-02-28 1:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-28 1:04 Merlijn Wajer [this message]
2018-02-28 1:04 ` [RFC PATCH 1/1] " Merlijn Wajer
2018-02-28 5:58 ` Matt Ranostay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180228010452.1713-1-merlijn@wizzup.org \
--to=merlijn@wizzup.org \
--cc=afd@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=kernel@networkimprov.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=matt.ranostay@konsulko.com \
--cc=pali.rohar@gmail.com \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®