All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@nokia.com>
To: "Hunter Adrian (Nokia-MS/Helsinki)" <adrian.hunter@nokia.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	madhusudhan Chikkature <madhu.cr@ti.com>
Subject: Re: [PATCH] omap_hsmmc: remove 'UGLY HACK:  workaround regulator framework bugs'
Date: Thu, 05 Aug 2010 11:15:12 +0300	[thread overview]
Message-ID: <4C5A7310.3020006@nokia.com> (raw)
In-Reply-To: <4C5A7212.6070207@nokia.com>

Adding Madhu to cc

Hunter Adrian (Nokia-MS/Helsinki) wrote:
>>From 4e0d37a810e92395390640f699feac5de42a9b02 Mon Sep 17 00:00:00 2001
> From: Adrian Hunter <adrian.hunter@nokia.com>
> Date: Thu, 5 Aug 2010 10:49:34 +0300
> Subject: [PATCH] omap_hsmmc: remove 'UGLY HACK:  workaround regulator framework bugs'
> 
> The framework is fixed.  The hack can be removed.
> 
> Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
> ---
>  drivers/mmc/host/omap_hsmmc.c |   19 -------------------
>  1 files changed, 0 insertions(+), 19 deletions(-)
> 
> diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
> index 4a8776f..6bdae60 100644
> --- a/drivers/mmc/host/omap_hsmmc.c
> +++ b/drivers/mmc/host/omap_hsmmc.c
> @@ -401,25 +401,6 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host)
>  		/* Allow an aux regulator */
>  		reg = regulator_get(host->dev, "vmmc_aux");
>  		host->vcc_aux = IS_ERR(reg) ? NULL : reg;
> -
> -		/*
> -		* UGLY HACK:  workaround regulator framework bugs.
> -		* When the bootloader leaves a supply active, it's
> -		* initialized with zero usecount ... and we can't
> -		* disable it without first enabling it.  Until the
> -		* framework is fixed, we need a workaround like this
> -		* (which is safe for MMC, but not in general).
> -		*/
> -		if (regulator_is_enabled(host->vcc) > 0) {
> -			regulator_enable(host->vcc);
> -			regulator_disable(host->vcc);
> -		}
> -		if (host->vcc_aux) {
> -			if (regulator_is_enabled(reg) > 0) {
> -				regulator_enable(reg);
> -				regulator_disable(reg);
> -			}
> -		}
>  	}
>  
>  	return 0;


      reply	other threads:[~2010-08-05  8:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05  8:10 [PATCH] omap_hsmmc: remove 'UGLY HACK: workaround regulator framework bugs' Adrian Hunter
2010-08-05  8:15 ` Adrian Hunter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C5A7310.3020006@nokia.com \
    --to=adrian.hunter@nokia.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=madhu.cr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.