From: Felipe Balbi Subject: Re: [1/7 v4] usb: otg: enable regulator only on cable/device connect Date: Thu, 17 Feb 2011 14:20:11 +0200 Message-ID: <20110217122011.GD22356@legolas.emea.dhcp.ti.com> References: <1297924570-3750-1-git-send-email-hemahk@ti.com> Reply-To: balbi@ti.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]:35671 "EHLO na3sys009aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020Ab1BQMUS (ORCPT ); Thu, 17 Feb 2011 07:20:18 -0500 Content-Disposition: inline In-Reply-To: <1297924570-3750-1-git-send-email-hemahk@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Hema HK Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, Felipe Balbi , Tony Lindgren , Paul Walmsley 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. -- balbi