From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755691AbaBUOpc (ORCPT ); Fri, 21 Feb 2014 09:45:32 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:52280 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754922AbaBUOpb (ORCPT ); Fri, 21 Feb 2014 09:45:31 -0500 Date: Fri, 21 Feb 2014 15:45:29 +0100 From: Pavel Machek To: Jenny Tc Cc: linux-kernel@vger.kernel.org, Dmitry Eremin-Solenikov , Anton Vorontsov , Anton Vorontsov , Kim Milo , Lee Jones , Jingoo Han , Chanwoo Choi , Sachin Kamat , Lars-Peter Clausen , Pali =?iso-8859-1?Q?Roh=E1r?= , Rhyland Klein , "Rafael J. Wysocki" , David Woodhouse , Tony Lindgren , Russell King , Sebastian Reichel , aaro.koskinen@iki.fi, Pallala Ramakrishna , freemangordon@abv.bg, linux-omap@vger.kernel.org Subject: Re: [PATCH 3/4] power_supply: Introduce PSE compliant algorithm Message-ID: <20140221144529.GB5238@amd.pavel.ucw.cz> References: <1391490780-6141-1-git-send-email-jenny.tc@intel.com> <1391490780-6141-4-git-send-email-jenny.tc@intel.com> <20140204113640.GD2450@amd.pavel.ucw.cz> <20140220051655.GB2498@jenny-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140220051655.GB2498@jenny-desktop> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2014-02-20 10:46:55, Jenny Tc wrote: > On Tue, Feb 04, 2014 at 12:36:40PM +0100, Pavel Machek wrote: > > > --- a/drivers/power/Kconfig > > > +++ b/drivers/power/Kconfig > > > @@ -22,6 +22,19 @@ config POWER_SUPPLY_CHARGER > > > drivers to keep the charging logic outside and the charger driver > > > just need to abstract the charger hardware. > > > > > > +config POWER_SUPPLY_CHARGING_ALGO_PSE > > > + bool "PSE compliant charging algorithm" > > > + help > > > + Say Y here to select Product Safety Engineering (PSE) compliant > > > + charging algorithm. As per PSE standard the battery characteristics > > > + and thereby the charging rates can vary on different temperature > > > + zones. This config will enable PSE compliant charging algorithm with > > > + maintenance charging support. At runtime the algorithm will be > > > + selected by the psy charger driver based on the type of the battery > > > + charging profile. > > > > Information where to expect PSE compliant chargers would be nice. > > This algorithm can be used with non PSE compliant chargers also. This is a SW > based charging algorithm. Ok, but you need to explain for the users when it might be good idea to select this option... Or maybe this should not be user configurable and drivers should just select it? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html