Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751751AbcDFRCK (ORCPT ); Wed, 6 Apr 2016 13:02:10 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:48448 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750847AbcDFRCI (ORCPT ); Wed, 6 Apr 2016 13:02:08 -0400 Date: Wed, 6 Apr 2016 10:01:31 -0700 From: Mark Brown To: Peter Chen Cc: Baolin Wang , Felipe Balbi , Greg KH , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Peter Chen , Alan Stern , r.baldyga@samsung.com, Yoshihiro Shimoda , Lee Jones , Charles Keepax , patches@opensource.wolfsonmicro.com, Linux PM list , USB , device-mainlining@lists.linuxfoundation.org, LKML Message-ID: <20160406170131.GO1924@sirena.org.uk> References: <20160405064637.GA31351@shlinux2.ap.freescale.net> <20160405081222.GC31351@shlinux2.ap.freescale.net> <20160405165305.GD1924@sirena.org.uk> <20160406011526.GB6301@shlinux2.ap.freescale.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/TUrtqMIkCP4YtJm" Content-Disposition: inline In-Reply-To: <20160406011526.GB6301@shlinux2.ap.freescale.net> X-Cookie: Even bytes get lonely for a little bit. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 209.65.105.100 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH v9 0/4] Introduce usb charger framework to deal with the usb gadget power negotation X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1526 Lines: 39 --/TUrtqMIkCP4YtJm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 06, 2016 at 09:15:26AM +0800, Peter Chen wrote: > > > No, this comment is common one, but only for SW detection. Eg, when > > > the PMIC tells you it is a SDP, you can't notify to charger IC about > > > 500mA at once, you need to do it after host allows you to do it. > > Note that this isn't just the charger device that needs to constrain > > current consumption - it's the entire system. You can't charge to the > > limit for system power draw if the USB controller is supplying the main > > system rail. > Sorry, I can't catch up you. USB Host (SDP or CDP) supplies power for > USB device (not only USB controller, it is the whole system), it can > supply more power after set configuration. See 1.4.13 from BC 1.2. You're saying we need to notify the charger. The charger does not in general control the overall system current draw. --/TUrtqMIkCP4YtJm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXBUDoAAoJECTWi3JdVIfQFUgH/j2XE0TyDrVymZdsP64S8D3P 5ZdxMXKlPKhGxunk/LyTr3mbRbQjEfgh4B/qrzLjvP1KmigNFxvXKFL1w/6eLBnH mESNH4eBdgY8lwbmhRGFokEGMdOC3J67Ircx9b6sIrbHsCOh7xAtup0/1FuEAyp1 f+Pu9iFuWvGx5m7QYO0zP8cVU0cKzNWBIrc4tvUTUHxxpazicZZK33bUrnFLeM1I 6GHqxcjRafheAAihH5YlQgBFsXAI91Cqm+jFK6ROe0pV5iqgg8eanJC4H0O8bZTd FQT5gFznghoL7NUlQXyfiA2GikEaIQGlV2FBOVUH6KgcO2ZBjgbbru7A+WUV6Bo= =gxLV -----END PGP SIGNATURE----- --/TUrtqMIkCP4YtJm--