From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755598AbbCBV3o (ORCPT ); Mon, 2 Mar 2015 16:29:44 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:59699 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755010AbbCBV3l (ORCPT ); Mon, 2 Mar 2015 16:29:41 -0500 Date: Mon, 2 Mar 2015 22:29:39 +0100 From: Pavel Machek To: NeilBrown Cc: Samuel Ortiz , Tony Lindgren , Lee Jones , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , GTA04 owners , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 15/15] twl4030_charger: assume a 'charger' can supply maximum current. Message-ID: <20150302212939.GS13270@amd> References: <20150224043341.4243.23291.stgit@notabene.brown> <20150224043353.4243.7374.stgit@notabene.brown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150224043353.4243.7374.stgit@notabene.brown> 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 On Tue 2015-02-24 15:33:53, NeilBrown wrote: > If it cannot, we will stop pulling more current when voltage drops. Can you justify it a bit more? I mean... maybe there's a fuse in the charger? Or maybe it will supply the current but overheat in the process? (USB_MAX_CURRENT is 500mA or 1.7A?) Thanks, Pavel > Signed-off-by: NeilBrown > @@ -691,8 +691,10 @@ static void twl4030_bci_usb_work(struct work_struct *data) > struct twl4030_bci *bci = container_of(data, struct twl4030_bci, work); > > switch (bci->event) { > - case USB_EVENT_VBUS: > case USB_EVENT_CHARGER: > + bci->usb_cur = USB_MAX_CURRENT; > + /* FALL THROUGH */ > + case USB_EVENT_VBUS: > case USB_EVENT_ENUMERATED: > twl4030_charger_enable_usb(bci, true); > break; -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html