From: Anton Vorontsov <anton.vorontsov@linaro.org>
To: Chanwoo Choi <cw00.choi@samsung.com>
Cc: jenny.tc@intel.com, ramakrishna.pallala@intel.com,
myungjoo.ham@samsung.com, kyungmin.park@samsung.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/5] charger-manager: Support limit of maximum possible duration for charging/discharging
Date: Thu, 20 Sep 2012 22:08:38 -0700 [thread overview]
Message-ID: <20120921050837.GA927@lizard> (raw)
In-Reply-To: <1345536417-25948-1-git-send-email-cw00.choi@samsung.com>
On Tue, Aug 21, 2012 at 05:06:57PM +0900, Chanwoo Choi wrote:
> This patch check maximum possible duration of charging/discharging.
>
> If whole charging duration exceed 'desc->charging_max_duration_ms',
> cm stop charging to prevent overcharge/overheat. And if discharging
> duration exceed, charger cable is attached, after full-batt,
> cm start charging to maintain fully charged state for battery.
>
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
Applied, thanks!
But fyi:
[...]
> + if (!desc->charging_max_duration_ms
> + && !desc->discharging_max_duration_ms)
&& should have been on the previous line, plus the second line
should have been indented with one more tab. I fixed it up.
[...]
> + if (!desc->charging_max_duration_ms
> + || !desc->discharging_max_duration_ms) {
Ditto.
> + dev_info(&pdev->dev, "Cannot limit charging duration"
> + " checking mechanism to prevent "
> + " overcharge/overheat and control"
Thanks,
Anton.
prev parent reply other threads:[~2012-09-21 5:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-21 8:06 [PATCH 5/5] charger-manager: Support limit of maximum possible duration for charging/discharging Chanwoo Choi
2012-09-21 5:08 ` Anton Vorontsov [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=20120921050837.GA927@lizard \
--to=anton.vorontsov@linaro.org \
--cc=cw00.choi@samsung.com \
--cc=jenny.tc@intel.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--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