From: Donggeun Kim <dg77.kim@samsung.com>
To: linux-pm@vger.kernel.org
Cc: len.brown@intel.com, pavel@ucw.cz, rjw@sisk.pl,
rdunlap@xenotime.net, cbouatmailru@gmail.com,
pali.rohar@gmail.com, prakity@marvell.com,
broonie@opensource.wolfsonmicro.com, lars@metafoo.de,
kyungmin.park@samsung.com, myungjoo.ham@samsung.com,
dg77.kim@samsung.com, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] power: introduce Charger-Manager
Date: Wed, 21 Dec 2011 18:36:43 +0900 [thread overview]
Message-ID: <1324460205-24683-1-git-send-email-dg77.kim@samsung.com> (raw)
Charger Manager provides in-kernel battery charger management that
requires temperature monitoring during both normal and suspend-to-RAM states
and where each battery may have multiple chargers attached and the userland
wants to look at the aggregated information of the multiple chargers.
Charger Manager is a platform_driver with power-supply-class entries.
An instance of Charger Manager (a platform-device created with
Charger-Manager) represents a battery with chargers. If there are multiple
batteries with their own chargers acting independently in a system,
the system may need multiple instances of Charger Manager.
Multiple chargers (e.g., USB, wireless, and solar panels) may be included
as pairs of a regulator and a power-supply-class
per charger.
Charger Manager glues multiple charger-related frameworks (regulators of
chargers, power-supply-class from chargers and fuel-gauge, RTC,
suspend-again, ...) together to provide aggregated information and
transparent battery monitoring to userspace.
For the discussions about the need for in-suspend monitoring, please
refer to the discussions of suspend-again in PM:
v1 https://lists.linux-foundation.org/pipermail/linux-pm/2011-April/031052.html
v2 https://lists.linux-foundation.org/pipermail/linux-pm/2011-April/031111.html
v3 https://lists.linux-foundation.org/pipermail/linux-pm/2011-May/031267.html
v4 https://lists.linux-foundation.org/pipermail/linux-pm/2011-May/031357.html
v5 (last, applied) https://lists.linux-foundation.org/pipermail/linux-pm/2011-June/031561.html
To see the usage example, please refer to:
http://git.infradead.org/users/kmpark/linux-2.6-samsung/shortlog/refs/heads/charger-manager
In this git branch, a test code for Exynos4-NURI is shown.
This patch set supports initial Charger Manager driver.
---
Changes for v2:
- change symbol type of Kconfig to boolean
Donggeun Kim (2):
power: Charger-Manager: add initial Charger-Manager driver
power: Charger-Manager: add properties for power-supply-class
Documentation/power/charger-manager.txt | 164 +++++
drivers/power/Kconfig | 9 +
drivers/power/Makefile | 1 +
drivers/power/charger-manager.c | 1064 +++++++++++++++++++++++++++++++
include/linux/power/charger-manager.h | 148 +++++
5 files changed, 1386 insertions(+), 0 deletions(-)
create mode 100644 Documentation/power/charger-manager.txt
create mode 100644 drivers/power/charger-manager.c
create mode 100644 include/linux/power/charger-manager.h
--
1.7.4.1
next reply other threads:[~2011-12-21 9:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 9:36 Donggeun Kim [this message]
2011-12-21 9:36 ` [PATCH v2 1/2] power: Charger-Manager: add initial Charger-Manager driver Donggeun Kim
2011-12-26 20:27 ` Rafael J. Wysocki
2011-12-27 8:05 ` MyungJoo Ham
2011-12-21 9:36 ` [PATCH v2 2/2] power: Charger-Manager: add properties for power-supply-class Donggeun Kim
2011-12-26 10:12 ` [PATCH v2 0/2] power: introduce Charger-Manager MyungJoo Ham
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=1324460205-24683-1-git-send-email-dg77.kim@samsung.com \
--to=dg77.kim@samsung.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=cbouatmailru@gmail.com \
--cc=kyungmin.park@samsung.com \
--cc=lars@metafoo.de \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=pali.rohar@gmail.com \
--cc=pavel@ucw.cz \
--cc=prakity@marvell.com \
--cc=rdunlap@xenotime.net \
--cc=rjw@sisk.pl \
/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®