Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753496Ab1BGKxD (ORCPT ); Mon, 7 Feb 2011 05:53:03 -0500 Received: from mail-iw0-f174.google.com ([209.85.214.174]:33844 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753177Ab1BGKxB convert rfc822-to-8bit (ORCPT ); Mon, 7 Feb 2011 05:53:01 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=IPGD5RexM/LPycEJsDsUufnzRNmlYoyIt8yJ1DgetSXPMTnb0Ts9NdamTS8Tyub3wo wIQNFl19dIjAKYl0l3dJi3l56GQToi98JeILw+ONW1U320A6MwTm9KPGdnmrsoQySQgE xB8WZsRKHlFtTOXsp+5nst2PJ90tUSqokgigU= MIME-Version: 1.0 In-Reply-To: <4D4F2A3C.9070407@metafoo.de> References: <1296953291-10373-1-git-send-email-lars@metafoo.de> <4D4F2A3C.9070407@metafoo.de> From: =?UTF-8?Q?Pali_Roh=C3=A1r?= Date: Mon, 7 Feb 2011 11:52:19 +0100 Message-ID: Subject: Re: [PATCH 00/14] POWER: BQ27x00: New Properties, fixes, bq27000 support To: Lars-Peter Clausen Cc: Felipe Contreras , Anton Vorontsov , Rodolfo Giometti , Grazvydas Ignotas , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2630 Lines: 59 2011/2/7 Lars-Peter Clausen : > On 02/06/2011 11:47 PM, Felipe Contreras wrote: >> Hi, >> >> On Sun, Feb 6, 2011 at 2:47 AM, Lars-Peter Clausen wrote: >>> This patch series contains a few updates for the bq27x00 driver: >>> * Support for additional power supply properties >>> * Support for the bq27000 battery which is identical to the bq27200 but is >>>  connected through the HDQ bus. >>> * Adds a register cache to the driver and introduces polling the batteries state >>> * Minor improvements and cleanups >>> >>> The last patch in this series is not specific to the bq27x00 driver but is >>> required for uevents to be generated properly for this driver. >>> The patch makes properties which return -ENODATA to be ignored when generating >>> uevents. Previously in such a case uevent generation would have been aborted >>> with an error. But since the bq27x00 return -ENODATA for the TIME_TO_FULL >>> property when the battery is not charging and for the TIME_TO_EMPTY property >>> when the battery is not discharging and at least one of them is always true >>> uevent generation would always fail. >>> >>> This series has so far been tested with the bq27000 and the bq27200 battery, but >>> not with the bq27500 battery, so it would be nice if somebody with a board >>> containing such a battery could test the patches to make sure that there are no >>> regressions. >> >> This might be a bit off-topic, but I have tried to get the battery on >> the Nokia N900 working, and so far I'm only able to query the >> remaining capacity, but not really to enabling charging. This is very >> annoying, as I can only hack a certain amount of time, and then I have >> to reflash, reboot, and wait for the batter to charge with the >> official system (if there's enough power to flash). >> >> Do you have any hints how to do that? >> > > Hi > > Sorry, I've never worked with the N900, so I have no idea. But Pali has tested this > patch series on his N900, so he might have an idea. > > - Lars > bq27x00 module does not support battery charging on Nokia N900. Only can report battery state and some properties. Battery Managment Entity (BME) is proprietary Nokia software which can charge battery in Nokia N900. Alternative solution for charging battery you can find on: http://enivax.net/jk/n900/charge21.sh.txt -- Pali Rohár pali.rohar@gmail.com -- 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/