public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Chris Ball <cjb@laptop.org>
To: Alexander Elbs <alex@segv.de>
Cc: Arindam Nath <arindam.nath@amd.com>,
	Philip Rakity <prakity@marvell.com>,
	linux-mmc@vger.kernel.org
Subject: Re: regression: sd cards no longer recognized
Date: Mon, 02 Jan 2012 19:29:10 -0500	[thread overview]
Message-ID: <m2vcotoch5.fsf@bob.laptop.org> (raw)
In-Reply-To: <20120101115146.GE16096@segv.de> (Alexander Elbs's message of "Sun, 1 Jan 2012 12:51:46 +0100")

Hi Alexander,

On Sun, Jan 01 2012, Alexander Elbs wrote:
> Hi,
>
> on a dell vostro with an integrated SD card reader I have the problem, that
> inserted SD cards are no longer recognized.
> The reader is a "O2 Micro, Inc. Integrated MMC/SD Controller (rev 02)"
> (1217:7120).
>
> Doing a git bisect I found that commit 49c468f "mmc: sd: add support for uhs
> bus speed mode selection" caused this regression.
>
> Looking more closely into it I found that the flag SDHCI_CTRL_HISPD is always
> set even on MMC_TIMING_UHS_SDR12 (which is an alias for MMC_TIMING_LEGACY).
>
> If that flag in that case is not set (as was before commit 49c468f) my reader
> works fine again.
>
> Could you include that fix or does it break other readers?
>
> Regards,
> Alexander Elbs
>
> ---
>  drivers/mmc/host/sdhci.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index 6d8eea3..8872e92 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -1364,8 +1364,7 @@ static void sdhci_do_set_ios(struct sdhci_host *host,
> struct mmc_ios *ios)
>                 if ((ios->timing == MMC_TIMING_UHS_SDR50) ||
>                     (ios->timing == MMC_TIMING_UHS_SDR104) ||
>                     (ios->timing == MMC_TIMING_UHS_DDR50) ||
> -                   (ios->timing == MMC_TIMING_UHS_SDR25) ||
> -                   (ios->timing == MMC_TIMING_UHS_SDR12))
> +                   (ios->timing == MMC_TIMING_UHS_SDR25))
>                         ctrl |= SDHCI_CTRL_HISPD;
>  
>                 ctrl_2 = sdhci_readw(host, SDHCI_HOST_CONTROL2);

Thanks for the report -- adding Arindam and Philip to CC for comments.

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

  reply	other threads:[~2012-01-03  0:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-01 11:51 regression: sd cards no longer recognized Alexander Elbs
2012-01-03  0:29 ` Chris Ball [this message]
2012-01-03  1:23   ` Philip Rakity
2012-01-03  1:24     ` Chris Ball
2012-01-03  9:53       ` Alexander Elbs
2012-01-04  4:28         ` Chris Ball
2012-01-03  6:04     ` Nath, Arindam

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=m2vcotoch5.fsf@bob.laptop.org \
    --to=cjb@laptop.org \
    --cc=alex@segv.de \
    --cc=arindam.nath@amd.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=prakity@marvell.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