From: Felipe Balbi Subject: Re: [1/7 v4] usb: otg: enable regulator only on cable/device connect Date: Thu, 17 Feb 2011 14:25:50 +0200 Message-ID: <20110217122550.GE22356@legolas.emea.dhcp.ti.com> References: <1297924570-3750-1-git-send-email-hemahk@ti.com> <20110217122011.GD22356@legolas.emea.dhcp.ti.com> Reply-To: balbi@ti.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from na3sys009aog110.obsmtp.com ([74.125.149.203]:34439 "EHLO na3sys009aog110.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752352Ab1BQMZ4 (ORCPT ); Thu, 17 Feb 2011 07:25:56 -0500 Content-Disposition: inline In-Reply-To: <20110217122011.GD22356@legolas.emea.dhcp.ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Felipe Balbi Cc: Hema HK , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, Tony Lindgren , Paul Walmsley Hi, On Thu, Feb 17, 2011 at 02:20:11PM +0200, Felipe Balbi wrote: > On Thu, Feb 17, 2011 at 12:06:04PM +0530, Hema HK wrote: > > From: Kalliguddi, Hema > > > > Remove the regulator enable while driver loading and enable it only when > > the cable/device is connected and disable it when disconnected. > > > > Remove the configuration of config_state and config_trans register > > configuration as these registers are programmed when regulator > > enable/disable is called. > > > > Signed-off-by: Hema HK > > Cc: Felipe Balbi > > Cc: Tony Lindgren > > Cc: Paul Walmsley > > Taken these 7. Tested and it works fine. actually, this series adds: drivers/usb/otg/twl6030-usb.c: In function 'twl6030_phy_suspend': drivers/usb/otg/twl6030-usb.c:183:2: warning: ISO C90 forbids mixed declarations and code drivers/usb/otg/twl6030-usb.c: At top level: drivers/usb/otg/twl6030-usb.c:135:12: warning: 'twl6030_set_phy_clk' defined but not used care to fix and send an incremental diff mentioning which was the offending patch please. -- balbi