From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH 04/13] twl4030_charger: trust phy to determine when USB power is available. Date: Tue, 15 Sep 2015 13:30:09 +0200 Message-ID: <20150915113009.GC10704@amd> References: <20150730001113.4012.18086.stgit@noble> <20150730001124.4012.85912.stgit@noble> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:42241 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751759AbbIOLaM (ORCPT ); Tue, 15 Sep 2015 07:30:12 -0400 Content-Disposition: inline In-Reply-To: <20150730001124.4012.85912.stgit@noble> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: NeilBrown Cc: Sebastian Reichel , Samuel Ortiz , linux-pm@vger.kernel.org, Tony Lindgren , David Woodhouse , linux-kernel@vger.kernel.org, real GTA04 owners , Dmitry Eremin-Solenikov , linux-omap@vger.kernel.org, Lee Jones On Thu 2015-07-30 10:11:24, NeilBrown wrote: > The usb phy driver already determines when VBUS is available, > so repeating the test in the charger driver is pointless duplication. > > On probe, process the last event from the phy, and from then on, > do whatever the phy tells us without double-checking. > > Signed-off-by: NeilBrown Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html