Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757840AbcC2RXh (ORCPT ); Tue, 29 Mar 2016 13:23:37 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:52246 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753488AbcC2RXf (ORCPT ); Tue, 29 Mar 2016 13:23:35 -0400 Date: Tue, 29 Mar 2016 10:23:14 -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: <20160329172314.GZ2350@sirena.org.uk> References: <20160325070937.GA22398@peterchendt> <20160328071351.GC3302@peterchendt> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lKbk9CFItQTD29wm" Content-Disposition: inline In-Reply-To: <20160328071351.GC3302@peterchendt> X-Cookie: If anything can go wrong, it will. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 64.55.107.4 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH v8 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: 1406 Lines: 38 --lKbk9CFItQTD29wm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 28, 2016 at 03:13:51PM +0800, Peter Chen wrote: > On Mon, Mar 28, 2016 at 02:51:40PM +0800, Baolin Wang wrote: > > > I am afraid I still not find the user (udc driver) for this framework, I would > > > like to see how udc driver block the enumeration until the charger detection > > > has finished, or am I missing something? > > It is not for udc driver but for power users who want to negotiate > > with USB subsystem. > Then, where is the code the test user to decide what kinds of USB charger > (SDP, CDP, DCP) is connecting now? Even without detection of CDP and DCP we have configurability within SDP - there's the 2.5mA suspended limit, the 100mA default limit and the higher 500mA limit which can be negotiated. --lKbk9CFItQTD29wm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJW+roBAAoJECTWi3JdVIfQ/rcH/22FLDoOaSmiQpVJQ+DePHuH a7t/vzmpWT+g/ksPB81g+oLyUow8m+EOSr9Zfg202JHn2E7rWYmwMEb+d5p3SqQg hy+N03VZBIcVnihJ+nPiU0MvLtA5zS/x4Q1kSK3mJHfHyzGWs/7+FE2hGJfqW/Lt 2vGcgn3YRjaCV3g0GbJoqKz0GqMG/VzehNskIStS6h550g+3ofdhi2m+uXHi6opp uanEx+Rw+8xDleQSduvI6fvqL09frPbL6ZGikzwobHTQ5ZnMnD3P7uB4lKHR4AdQ QnZEaDw5F+AcLYmMk+LPahVB0afNDL7cjLNJxxTkKLmkFkhWMUCMHwK+K70SrpY= =bsXw -----END PGP SIGNATURE----- --lKbk9CFItQTD29wm--