Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753579Ab0H2Pau (ORCPT ); Sun, 29 Aug 2010 11:30:50 -0400 Received: from mail-qw0-f46.google.com ([209.85.216.46]:52748 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753164Ab0H2Pat convert rfc822-to-8bit (ORCPT ); Sun, 29 Aug 2010 11:30:49 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=dgLZHs8sMx5x16qVZwUgy8uMuMwHuDj3FrH0xpC5TvmA86XVKNe0V76wy8PhNW3p+C 0cWVWSqNXZ0KTWdfT4dBepaOIA5cLcuOXkniZDmiEPplg038rAmKTV8PFK5aOMVU+7T8 yd9B7HRvCabgBUqRAF9tOT2YEs1TsDH3uY1AA= MIME-Version: 1.0 In-Reply-To: <20100829132711.GB10233@opensource.wolfsonmicro.com> References: <1259844390-10541-1-git-send-email-daniel@caiaq.de> <20100827190306.GB20407@void.printf.net> <20100829132711.GB10233@opensource.wolfsonmicro.com> Date: Sun, 29 Aug 2010 17:30:48 +0200 Message-ID: Subject: Re: [PATCH] mmc: move regulator handling to core From: Linus Walleij To: Mark Brown 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1409 Lines: 32 2010/8/29 Mark Brown : > On Sat, Aug 28, 2010 at 04:48:58PM +0200, Linus Walleij wrote: >> 2010/8/27 Chris Ball : > >> > 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? > >> Actually just before the summer I submitted something not quite similar: >> I moved all regulator handling *out* of the MMC core because I didn't >> trust the way reference counting was being handled. > > 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 can get that patch into shape easily, if for nothing else it's a nice discussion item. Yours, Linus Walleij -- 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/