Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755321Ab0H0TDd (ORCPT ); Fri, 27 Aug 2010 15:03:33 -0400 Received: from void.printf.net ([89.145.121.20]:57198 "EHLO void.printf.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040Ab0H0TDc (ORCPT ); Fri, 27 Aug 2010 15:03:32 -0400 Date: Fri, 27 Aug 2010 20:03:06 +0100 From: Chris Ball To: Daniel Mack Cc: linux-kernel@vger.kernel.org, Mark Brown , Liam Girdwood , Pierre Ossman , Andrew Morton , Matt Fleming , Adrian Hunter , David Brownell , Russell King , Linus Walleij , Eric Miao , Robert Jarzmik , Cliff Brake , Jarkko Lavinen , Madhusudhan , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] mmc: move regulator handling to core Message-ID: <20100827190306.GB20407@void.printf.net> References: <1259844390-10541-1-git-send-email-daniel@caiaq.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1259844390-10541-1-git-send-email-daniel@caiaq.de> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1219 Lines: 27 Hi Daniel, On Thu, Dec 03, 2009 at 01:46:30PM +0100, Daniel Mack wrote: > At the moment, regulator operations are done from individual mmc host > drivers. This is a problem because the regulators are not claimed > exclusively but the mmc core enables and disables them according to the > return value of regulator_is_enabled(). That can lead to a number of > problems and warnings when regulators are shared among multiple > consumers or if regulators are marked as 'always_on'. > > Fix this by moving the some logic to the core, and put the regulator > reference to the mmc_host struct and let it do its own supply state > tracking so that the reference counting in the regulator won't get > confused. Looks like this patch got dropped because of the missing modifications to arch/arm/mach-omap2/mmc-twl4030.c. Are we still interested in the patch otherwise, and can anyone help with that? -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/