linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Adrian Hunter <adrian.hunter@nokia.com>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: [PATCH] mmc: fix incorrect interpretation of card type bits
Date: Mon, 22 Mar 2010 15:43:18 -0700	[thread overview]
Message-ID: <20100322154318.5fffc3bf.akpm@linux-foundation.org> (raw)
In-Reply-To: <4BA318B8.5060408@nokia.com>

On Fri, 19 Mar 2010 08:24:56 +0200
Adrian Hunter <adrian.hunter@nokia.com> wrote:

> From: Adrian Hunter <adrian.hunter@nokia.com>
> Date: Fri, 19 Mar 2010 08:06:54 +0200
> Subject: [PATCH] mmc: fix incorrect interpretation of card type bits
> 
> In the extended CSD register the CARD_TYPE is an 8-bit value
> of which the upper 6 bits were reserved in JEDEC specifications
> prior to version 4.4.  In version 4.4 two of the reserved bits
> were designated for identifying support for the newly added
> High-Speed Dual Data Rate.  Unfortunately the mmc_read_ext_csd()
> function required that the reserved bits be zero instead of
> ignoring them as it should.
> 
> This patch makes mmc_read_ext_csd() ignore the CARD_TYPE bits
> that are reserved or not yet supported.  It also stops the
> function jumping to the end as though an error occurred, when
> it is only warns that the CARD_TYPE bits (that it does interpret)
> are invalid.

I need to whine about the changelog again.

I'm guessing that the effect here is that if someone puts one of these
new cards into an old kernel, this card will be incorrectly handled. 
Perhaps in ways which render the whole thing useless.

If that was a good guess then this patch would be needed in earlier
kernels too.

But it was only a guess, and I'd prefer not to have to guess.  So
please do remember to explain things like this in the changelog?



  reply	other threads:[~2010-03-22 22:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-19  6:24 [PATCH] mmc: fix incorrect interpretation of card type bits Adrian Hunter
2010-03-22 22:43 ` Andrew Morton [this message]
2010-03-23  5:52   ` Adrian Hunter

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=20100322154318.5fffc3bf.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=adrian.hunter@nokia.com \
    --cc=linux-mmc@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).