From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: "Pallala, Ramakrishna" <ramakrishna.pallala@intel.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
"cbou@mail.ru" <cbou@mail.ru>,
"dwmw2@infradead.org" <dwmw2@infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] intel_mid: Intel MSIC battery driver
Date: Tue, 14 Dec 2010 11:08:19 +0000 [thread overview]
Message-ID: <20101214110818.GA11489@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <12D0C12AF19E15409D57F22566E88EF505B045E598@bgsmsx501.gar.corp.intel.com>
On Tue, Dec 14, 2010 at 01:51:56PM +0530, Pallala, Ramakrishna wrote:
> > > + if (mbi->ch_params.vinilmt == CHRG_CURR_SDP_LOW)
> > > + mbi->usb_chrg_props.charger_type =
> > POWER_SUPPLY_CHARGE_TYPE_TRICKLE;
> > > + else
> > > + mbi->usb_chrg_props.charger_type =
> > > + POWER_SUPPLY_CHARGE_TYPE_FAST;
> > This isn't what fast and trickle charge are, they're not static
> > properties but rather reflect the kind of charging that's being done.
> If I understand correctly trickle charging will happen during full(or
> deeply discharge) charge conditions. But as soon as I hit the charge
> full condition I am stopping the charging and will go into maintenance
> mode. In maintenance mode I will check battery voltage to hit for
> lower threshold value and then enable the charging. During
> maintenance mode battery voltage is near to FULL charge value, So can I
> set the charging type to trickle during maintenance mode?
Given that it looks like this battery is capable of reporting more
detailed information such as the current that's being used to charge at
the moment I'm not sure it's worth supporting this property at all. The
property exists because with the chargers used in many small embedded
devices use this something the hardware reports directly and you don't
get much more information than that. If (as it seems) your charger has
no directly exported concept of different charge types then it's
probably safer to just not report this property and let userspace worry
about it.
The normal use for this information is figuring out why the battery is
taking longer than expected to charge - if the charger is stuck in
trickle charge then charging will take a very long time.
prev parent reply other threads:[~2010-12-14 11:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-13 15:30 [RFC] intel_mid: Intel MSIC battery driver Alan Cox
2010-12-13 16:20 ` Mark Brown
2010-12-14 8:21 ` Pallala, Ramakrishna
2010-12-14 11:08 ` Mark Brown [this message]
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=20101214110818.GA11489@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=cbou@mail.ru \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ramakrishna.pallala@intel.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