All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hein_Tibosch <hein_tibosch@yahoo.es>
To: r66093@freescale.com
Cc: linux-mmc@vger.kernel.org,
	Jerry Huang <Chang-Ming.Huang@freescale.com>,
	Chris Ball <cjb@laptop.org>
Subject: Re: [PATCH 1/5 v2] MMC/core: Make sure the power is up, when detect the card
Date: Tue, 06 Dec 2011 20:12:52 +0800	[thread overview]
Message-ID: <4EDE06C4.2060303@yahoo.es> (raw)
In-Reply-To: <1323163107-32619-1-git-send-email-r66093@freescale.com>

Hi Jerry,

On 12/6/2011 5:18 PM, r66093@freescale.com wrote:
> From: Jerry Huang <Chang-Ming.Huang@freescale.com>
>
> Before running get_cd() recall function to detect whether the card is
> present, must make sure the power is up.
>
> Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
> CC: Chris Ball <cjb@laptop.org>
> ---
> changes for v2:
> 	- add the CC
>
>  drivers/mmc/core/core.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
> index 5278ffb..a08e6b1 100644
> --- a/drivers/mmc/core/core.c
> +++ b/drivers/mmc/core/core.c
> @@ -2066,8 +2066,10 @@ void mmc_rescan(struct work_struct *work)
>  	 */
>  	mmc_bus_put(host);
>  
> +	mmc_power_up(host);

If get_cd is not defined, a power-up for sure isn't necessary:

>  	if (host->ops->get_cd && host->ops->get_cd(host) == 0)
>  		goto out;

Did you intent to leave it powered-up in case get_cd() fails?

> +	mmc_power_off(host);
>  
>  	mmc_claim_host(host);
>  	for (i = 0; i < ARRAY_SIZE(freqs); i++) {

  parent reply	other threads:[~2011-12-06 12:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-06  9:18 [PATCH 1/5 v2] MMC/core: Make sure the power is up, when detect the card r66093
2011-12-06  9:18 ` [PATCH 2/5 v2] MMC/core: Add f_min to mmc_power_on() r66093
2011-12-06 12:13   ` Hein_Tibosch
2011-12-06 12:18     ` Hein_Tibosch
2011-12-07  2:23     ` Huang Changming-R66093
2011-12-07  3:37       ` Hein_Tibosch
2011-12-07  7:45         ` Huang Changming-R66093
2011-12-06 12:12 ` Hein_Tibosch [this message]
2011-12-07  2:26   ` [PATCH 1/5 v2] MMC/core: Make sure the power is up, when detect the card Huang Changming-R66093

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=4EDE06C4.2060303@yahoo.es \
    --to=hein_tibosch@yahoo.es \
    --cc=Chang-Ming.Huang@freescale.com \
    --cc=cjb@laptop.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=r66093@freescale.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.