From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752986AbbBALiR (ORCPT ); Sun, 1 Feb 2015 06:38:17 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:41993 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752748AbbBALiP (ORCPT ); Sun, 1 Feb 2015 06:38:15 -0500 Date: Sun, 1 Feb 2015 12:38:13 +0100 From: Pavel Machek To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: sre@kernel.org, dbaryshkov@gmail.com, dwmw2@infradead.org, linux-pm@vger.kernel.org, sre@debian.org, sre@ring0.de, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com Subject: Re: bq2415x_charger.c: battery is discharged (fast, 224mA) when it should be charged Message-ID: <20150201113813.GA6570@amd> References: <20150201094702.GA21628@amd> <201502011108.16071@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201502011108.16071@pali> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Sun 2015-02-01 11:08:16, Pali Rohár wrote: > On Sunday 01 February 2015 10:47:02 Pavel Machek wrote: > > Hi! > > > > I connected N900 with full battery using USB. For some reason, > > charge limit was set to 100mA, battery was "full" and was > > discharging: > > > > Make sure you have loaded some usb gadget. Without it battery > charging via dedicated wallcharger (and probably also usb host > charger) does not working. g_nokia should be OK. I had that loaded (was running from root over USB at the moment.) > Try also compiling kernel with CONFIG_USB_GADGET_VBUS_DRAW=500 > > Also for charger autodetection you need to have loaded > isp1704_charer.ko module (or compiled into kernel). > > And make sure that isp1704_charger is loaded before module > bq2415x_charger (there is some probe defer, no idea if it works > as excepted). It seems bq2415x_charger is the problem: it all started working when I did echo reset > mode... Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html