public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Madhusudhan Chikkature <madhu.cr@ti.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [Resending PATCH 3/3] Fixes required for HSMMC driver to work as module
Date: Fri, 8 Aug 2008 10:44:05 +0300	[thread overview]
Message-ID: <20080808074404.GJ24923@atomide.com> (raw)
In-Reply-To: <43767.192.168.10.89.1218168822.squirrel@dbdmail.itg.ti.com>

* Madhusudhan Chikkature <madhu.cr@ti.com> [080808 07:14]:
> From: Madhusudhan Chikkature<madhu.cr@ti.com>
> 
> ARM: OMAP3: Fixes required to make HSMMC driver work as module.Complete the
> previously applied patch.
> 
> This patch provides the necessary fixes to make the HSMMC driver work as
> loadble module.

Pushing today.

Tony

> Signed-off-by: Madhusudhan Chikkature<madhu.cr@ti.com>
> Signed-off-by: Romit Dasgupta <romit@ti.com>
> ---
>  drivers/mmc/host/omap_hsmmc.c |   17 +++++++++++++++++
>  1 files changed, 17 insertions(+)
> 
> Index: linux-omap-2.6/drivers/mmc/host/omap_hsmmc.c
> ===================================================================
> --- linux-omap-2.6.orig/drivers/mmc/host/omap_hsmmc.c	2008-08-07
> 15:56:52.000000000 +0530
> +++ linux-omap-2.6/drivers/mmc/host/omap_hsmmc.c	2008-08-07 16:09:22.000000000
> +0530
> @@ -901,9 +901,26 @@ err:
>  static int omap_mmc_remove(struct platform_device *pdev)
>  {
>  	struct mmc_omap_host *host = platform_get_drvdata(pdev);
> +	struct resource *res;
> +	u16 vdd = 0;
> +
> +	if (!(OMAP_HSMMC_READ(host->base, HCTL) & SDVSDET)) {
> +	/*
> +	 * Set the vdd back to 3V,
> +	 * applicable for dual volt support.
> +	 */
> +		vdd = fls(host->mmc->ocr_avail) - 1;
> +		if (omap_mmc_switch_opcond(host, vdd) != 0)
> +			host->mmc->ios.vdd = vdd;
> +	}
> +
> +	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> +	if (res)
> +		release_mem_region(res->start, res->end - res->start + 1);
> 
>  	platform_set_drvdata(pdev, NULL);
>  	if (host) {
> +		mmc_remove_host(host->mmc);
>  		if (host->pdata->cleanup)
>  			host->pdata->cleanup(&pdev->dev);
>  		free_irq(host->irq, host);
> 
> 

      reply	other threads:[~2008-08-08  7:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08  4:13 [Resending PATCH 3/3] Fixes required for HSMMC driver to work as module Madhusudhan Chikkature
2008-08-08  7:44 ` Tony Lindgren [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=20080808074404.GJ24923@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox