From: Pavel Machek <pavel@ucw.cz>
To: "Pali Rohár" <pali.rohar@gmail.com>
Cc: sre@kernel.org, dbaryshkov@gmail.com, dwmw2@infradead.org,
linux-pm@vger.kernel.org, sre@debian.org, sre@ring0.de,
kernel list <linux-kernel@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
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
Date: Sun, 1 Feb 2015 12:38:13 +0100 [thread overview]
Message-ID: <20150201113813.GA6570@amd> (raw)
In-Reply-To: <201502011108.16071@pali>
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
WARNING: multiple messages have this Message-ID (diff)
From: pavel@ucw.cz (Pavel Machek)
To: linux-arm-kernel@lists.infradead.org
Subject: bq2415x_charger.c: battery is discharged (fast, 224mA) when it should be charged
Date: Sun, 1 Feb 2015 12:38:13 +0100 [thread overview]
Message-ID: <20150201113813.GA6570@amd> (raw)
In-Reply-To: <201502011108.16071@pali>
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
next prev parent reply other threads:[~2015-02-01 11:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-01 9:47 bq2415x_charger.c: battery is discharged (fast, 224mA) when it should be charged Pavel Machek
2015-02-01 9:47 ` Pavel Machek
2015-02-01 10:08 ` Pali Rohár
2015-02-01 10:08 ` Pali Rohár
2015-02-01 11:38 ` Pavel Machek [this message]
2015-02-01 11:38 ` Pavel Machek
2015-02-01 19:17 ` Pavel Machek
2015-02-01 19:17 ` Pavel Machek
2015-02-01 20:56 ` Pavel Machek
2015-02-01 20:56 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150201113813.GA6570@amd \
--to=pavel@ucw.cz \
--cc=aaro.koskinen@iki.fi \
--cc=dbaryshkov@gmail.com \
--cc=dwmw2@infradead.org \
--cc=ivo.g.dimitrov.75@gmail.com \
--cc=khilman@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pali.rohar@gmail.com \
--cc=sre@debian.org \
--cc=sre@kernel.org \
--cc=sre@ring0.de \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.