public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: Tony Lindgren <tony@atomide.com>
Cc: "Dr. H. Nikolaus Schaller" <hns@goldelico.com>,
	Grazvydas Ignotas <notasas@gmail.com>,
	Igor Grinberg <grinberg@compulab.co.il>,
	Lee Jones <lee.jones@linaro.org>,
	Samuel Ortiz <sameo@linux.intel.com>,
	"Russell King - ARM Linux" <linux@arm.linux.org.uk>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	List for communicating with real GTA04 owners 
	<gta04-owner@goldelico.com>
Subject: Re: [PATCH] mfd: twl4030-power: Fix poweroff with PM configuration enabled
Date: Wed, 12 Nov 2014 16:31:54 -0600	[thread overview]
Message-ID: <20141112223154.GP641@saruman> (raw)
In-Reply-To: <20141112212027.GK26481@atomide.com>

[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]

On Wed, Nov 12, 2014 at 01:20:27PM -0800, Tony Lindgren wrote:
> * Dr. H. Nikolaus Schaller <hns@goldelico.com> [141112 12:28]:
> > Am 12.11.2014 um 16:45 schrieb Grazvydas Ignotas <notasas@gmail.com>:
> > > On Tue, Nov 4, 2014 at 5:42 PM, Tony Lindgren <tony@atomide.com> wrote:
> > > 
> > > Pandora does, as well as GTA04 AFAIK,
> > 
> > Yes. The trick is that the power level that turns on the device is a little higher
> > and the battery provides enough energy for approx. 30 seconds until it drained
> > to a level where it turns off. Depending on general setup (WIFI must remain
> > powered off after boot) this is enough to boot into Linux and start full charging.
> > Another trick is to modify MLO and U-Boot to raise the charging current.
> 
> Depending on the device and the boot-up speed this seems to work only when
> connected to a Linux PC though. AFAIK Windows PCs enforce the 100mA USB power
> limit until the device is enumerated which can keep the device in an eternal
> reboot loop not being able to ever get the charging going :)

this is actually what the USB Battery Charging spec requires us to
implement. If Linux is doing differently, it's a bug on Linux which
should be fixed :-)

No host is allowed to source more then one unit load (100mA in LS/FS/HS,
150mA in SS) until the device is fully enumerated. Host are also
required to drop max current budget to 8mA (IIRC) if the device doesn't
enumerate for however many minutes (I guess it was a pretty long
threshold, something like half an hour or so. My memory fails me right
now).

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2014-11-12 22:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-02 18:07 [PATCH] mfd: twl4030-power: Fix poweroff with PM configuration enabled Tony Lindgren
2014-11-03 15:30 ` Lee Jones
2014-11-04 13:20 ` Igor Grinberg
2014-11-04 15:42   ` Tony Lindgren
2014-11-04 17:52     ` Igor Grinberg
2014-11-04 18:04       ` Tony Lindgren
2014-11-12 15:45     ` Grazvydas Ignotas
2014-11-12 16:26       ` Tony Lindgren
2014-11-12 20:26       ` Dr. H. Nikolaus Schaller
2014-11-12 21:20         ` Tony Lindgren
2014-11-12 22:31           ` Felipe Balbi [this message]
2014-11-19  3:43             ` NeilBrown
2014-11-21 23:37               ` Tony Lindgren
2014-11-07 11:25 ` Russell King - ARM Linux
2014-11-10 12:40 ` Lee Jones
2014-11-10 17:53   ` Russell King - ARM Linux
2014-11-11 12:31     ` Lee Jones

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=20141112223154.GP641@saruman \
    --to=balbi@ti.com \
    --cc=grinberg@compulab.co.il \
    --cc=gta04-owner@goldelico.com \
    --cc=hns@goldelico.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=notasas@gmail.com \
    --cc=sameo@linux.intel.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox