Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757185Ab0HaLIE (ORCPT ); Tue, 31 Aug 2010 07:08:04 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:48942 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756649Ab0HaLIA (ORCPT ); Tue, 31 Aug 2010 07:08:00 -0400 Date: Tue, 31 Aug 2010 12:07:58 +0100 From: Mark Brown To: Linus Walleij Cc: Chris Ball , Daniel Mack , linux-kernel@vger.kernel.org, Liam Girdwood , Pierre Ossman , Andrew Morton , Matt Fleming , Adrian Hunter , David Brownell , Russell King , 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: <20100831110758.GD20849@rakim.wolfsonmicro.main> References: <1259844390-10541-1-git-send-email-daniel@caiaq.de> <20100827190306.GB20407@void.printf.net> <20100829132711.GB10233@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Cookie: glibido: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1098 Lines: 22 On Sun, Aug 29, 2010 at 05:30:48PM +0200, Linus Walleij wrote: > 2010/8/29 Mark Brown : > > This seems like the wrong approach; if there's a problem it'd seem much > > better to fix the core code that everything is sharing rather than > > factor it out - the location of the code is orthogonal to its > > helpfulness. > I actually did not move the essential regulator bits out just enable/disable, > so that these were in the sites where the regulators were actually > enabled/disabled in respective driver. That makes the internal > regulator reference count do the trick. I'm not sure what "the sites where the regulators were actually enabled/disabled in respective driver" are but my understanding was that there's a bit of an issue here in that the MMC core does not guarantee balanced enable/disable calls. -- 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/