Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932787AbZKDX4J (ORCPT ); Wed, 4 Nov 2009 18:56:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758380AbZKDX4I (ORCPT ); Wed, 4 Nov 2009 18:56:08 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:32785 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758225AbZKDX4G (ORCPT ); Wed, 4 Nov 2009 18:56:06 -0500 Date: Thu, 5 Nov 2009 00:56:04 +0100 From: Pavel Machek To: Anton Vorontsov Cc: Paul Fertser , Anton Vorontsov , David Woodhouse , linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] power: pcf50633: properly reenable charging when the supply conditions change Message-ID: <20091104235604.GE27325@elf.ucw.cz> References: <1257369899-325-1-git-send-email-fercerpav@gmail.com> <1257369899-325-2-git-send-email-fercerpav@gmail.com> <1257369899-325-3-git-send-email-fercerpav@gmail.com> <1257369899-325-4-git-send-email-fercerpav@gmail.com> <1257369899-325-5-git-send-email-fercerpav@gmail.com> <20091104214622.GA27325@elf.ucw.cz> <20091104222431.GB24196@home.pavel.comp> <20091104234519.GA4587@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091104234519.GA4587@oksana.dev.rtsoft.ru> X-Warning: Reading this can be dangerous to your mental health. 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 Content-Length: 1723 Lines: 40 On Thu 2009-11-05 02:45:19, Anton Vorontsov wrote: > On Thu, Nov 05, 2009 at 01:24:31AM +0300, Paul Fertser wrote: > [...] > > > If you want to "top-up" the battery, perhaps that should be on > > > explicit request, like something in /sys? > > > > Well, probably but to me it seems like an unnecessary complexity. Also > > since Li* batteries are dominating the market nowadays this > > functionality would need to be introduced in the power_supply core to > > provide userspace with a consistent interface. Anton, can you please > > comment on this? > > Power supply class doesn't have writeable properties (initially > it was a 'battery monitor class'). Though. I'd happily merge > the support for writeable properties. ACPI batteries would > benefit too, i.e. they could export 'alarm' property (see > drivers/acpi/battery.c). Yep, writable properties would be nice for at least Spitz and Openmoko. Both of them have slow and fast charging modes, and sometimes user will need to override the default. > Though, I'd want to apply this patch set as is (i.e. I prefer > the new behaviour, as it's really more 'user friendly'), and > we could implement configurable option later. > > Pavel do you have a strong objection against this patch, or > you can live with it? :-) I can live with it... but thanks for asking :-). Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/