public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Ulf Hansson <ulf.hansson@stericsson.com>
To: Girish K S <girish.shivananjappa@linaro.org>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	"cjb@laptop.org" <cjb@laptop.org>,
	"patches@linaro.org" <patches@linaro.org>,
	"linux-samsung-soc@vger.kernel.org"
	<linux-samsung-soc@vger.kernel.org>
Subject: Re: [PATCH] mmc: core: Fix setting power notify state variable for non eMMC
Date: Fri, 11 Nov 2011 14:32:44 +0100	[thread overview]
Message-ID: <4EBD23FC.3070203@stericsson.com> (raw)
In-Reply-To: <1320403967-2940-1-git-send-email-girish.shivananjappa@linaro.org>

Girish K S wrote:
> This patch skips the setting of the power notify state variable
> for non eMMC 4.5 devices. Also fixes the problem of omap_hsmmc
> noisy/broken for suspend resume reported by kevin Hilman.
> 
> cc: Chris Ball <cjb@laptop.org>
> Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
> ---
>  drivers/mmc/core/mmc.c |   10 +++++++---
>  1 files changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
> index 3627044..4db73a9 100644
> --- a/drivers/mmc/core/mmc.c
> +++ b/drivers/mmc/core/mmc.c
> @@ -882,10 +882,14 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
>  				 card->ext_csd.generic_cmd6_time);
>  		if (err && err != -EBADMSG)
>  			goto free_card;
> -	}
>  
> -	if (!err)
> -		card->poweroff_notify_state = MMC_POWERED_ON;
> +		/*
> +		 * The err can be -EBADMSG or 0,
> +		 * so check for success and update the flag
> +		 */
> +		if (!err)
> +			card->poweroff_notify_state = MMC_POWERED_ON;
> +	}
>  
>  	/*
>  	 * Activate high speed (if supported)


I encountered similar problems as for omap_hsmmc for the mmci driver 
(although with some ST-Ericsson internal pm_runtime patches). This patch 
fixed the problem. Great!

Acked-by: Ulf Hansson <ulf.hansson@stericsson.com>


  parent reply	other threads:[~2011-11-11 13:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04 10:52 [PATCH] mmc: core: Fix setting power notify state variable for non eMMC Girish K S
2011-11-04 11:29 ` Girish K S
2011-11-11 13:32 ` Ulf Hansson [this message]
2011-11-12  3:12   ` Chris Ball

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=4EBD23FC.3070203@stericsson.com \
    --to=ulf.hansson@stericsson.com \
    --cc=cjb@laptop.org \
    --cc=girish.shivananjappa@linaro.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=patches@linaro.org \
    /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