From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jenny Tc Subject: Re: [PATCH 2/4] power_supply: Introduce Generic Power Supply charging driver Date: Thu, 30 Jan 2014 00:43:24 +0530 Message-ID: <20140129191324.GC15355@jenny-desktop> References: <1390411194-21410-1-git-send-email-jenny.tc@intel.com> <1390411194-21410-3-git-send-email-jenny.tc@intel.com> <20140125170402.GA27959@Nokia-N900> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20140125170402.GA27959@Nokia-N900> Sender: linux-kernel-owner@vger.kernel.org To: Pavel Machek Cc: "linux-kernel@vger.kernel.org" , Dmitry Eremin-Solenikov , Anton Vorontsov , Anton Vorontsov , Kim Milo , Lee Jones , Jingoo Han , Chanwoo Choi , Sachin Kamat , Rupesh Kumar , Lars-Peter Clausen , Pali Roh?r , Mark Brown , Rhyland Klein , David Woodhouse , Tony Lindgren , Russell King , Sebastian Reichel , "aaro.koskinen@iki.fi" , "freemangordon@abv.bg" , "linux-omap@vger.kernel.org" List-Id: linux-omap@vger.kernel.org On Sat, Jan 25, 2014 at 10:04:03AM -0700, Pavel Machek wrote: > > + * Write access using set_property > > + * Set Maximum charging current > > + * Action: Configure safety charging registers if any. If not no > > + actions expected for this. > > Having property that does nothing sounds evil to me. No h/w actions expected. But driver action expected. Will fix in next patch set > > +* POWER_SUPPLY_CHARGER_PROP_ENABLE_CHARGING > > + * Write access using set_property > > + * Enable/Disable charging. Charger supplies power to platform, > > + but charging is disabled > > This is unclear. Charging is always disabled? Writing 0, disables charger. Writing 1 enables charging. -Jenny