From: Andrew Morton <akpm@linux-foundation.org>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: cbouatmailru@gmail.com, sameo@openedhand.com,
linux-kernel@vger.kernel.org,
broonie@opensource.wolfsonmicro.com
Subject: Re: [PATCH] power_supply: Add support for WM8350 PMU
Date: Mon, 10 Nov 2008 15:43:30 -0800 [thread overview]
Message-ID: <20081110154330.f95ec239.akpm@linux-foundation.org> (raw)
In-Reply-To: <1225984523-15911-1-git-send-email-broonie@opensource.wolfsonmicro.com>
On Thu, 6 Nov 2008 15:15:22 +0000
Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:
> This patch adds support for the PMU provided by the WM8350 which
> implements battery, line and USB supplies including a battery charger.
> The hardware functions largely autonomously, with minimal software
> control required to initiate fast charging.
>
> Support for configuration of the USB supply is not yet implemented.
> This means that the hardware will remain in the mode configured at
> startup, by default limiting the current drawn from USB to 100mA.
>
> This driver was originally written by Liam Girdwood with subsequent
> updates for submission by Mark Brown.
An idle question...
> + supply = "Battery";
> + supply = "USB";
> + supply = "Line";
> + supply = "Battery and USB";
> + charge = "Charger Off";
> + charge = "Trickle Charging";
> + charge = "Fast Charging";
> + dev_err(wm8350->dev, "battery too hot\n");
> + dev_err(wm8350->dev, "battery too cold\n");
> + dev_err(wm8350->dev, "battery failed\n");
> + dev_err(wm8350->dev, "charger timeout\n");
> + dev_dbg(wm8350->dev, "charger stopped\n");
> + dev_dbg(wm8350->dev, "charger started\n");
> + dev_dbg(wm8350->dev, "fast charger ready\n");
> + dev_warn(wm8350->dev, "battery < 3.9V\n");
> + dev_warn(wm8350->dev, "battery < 3.1V\n");
> + dev_warn(wm8350->dev, "battery < 2.85V\n");
The above constitutes a sort-of userspace interface. A number of the
things which are being reported there are fairly common to the
technology and other drivers will be able to report them.
But afaict this interface is unique to this particular driver. Has any
thought been given to standardising this interface across all similar
drivers? Too messy?
next prev parent reply other threads:[~2008-11-10 23:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-06 15:15 [PATCH] power_supply: Add support for WM8350 PMU Mark Brown
2008-11-10 23:43 ` Andrew Morton [this message]
2008-11-11 13:11 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2008-11-11 15:08 Mark Brown
2008-11-12 16:47 ` Samuel Ortiz
2008-11-12 16:49 ` Mark Brown
2008-11-12 16:57 ` Samuel Ortiz
2008-11-14 1:20 ` Anton Vorontsov
2008-11-16 22:31 ` Samuel Ortiz
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=20081110154330.f95ec239.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=cbouatmailru@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@openedhand.com \
/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