]> err.no Git - linux-2.6/commitdiff
[MMC] Support MMC version 4 cards
authorPierre Ossman <drzeus@drzeus.cx>
Sun, 8 Jan 2006 14:23:02 +0000 (14:23 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Jan 2006 14:23:02 +0000 (14:23 +0000)
Version 4 of the MMC specification increased the version number of the
CID structure. None of the fields changed though so the only required
change is adding '4' to the approved list.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/mmc.c

index 6696f71363b92bc3c2744b3bd3ffe243ec2f1714..bfca5c176e8862c559e9f3abc1bf91c2ba9825c7 100644 (file)
@@ -495,6 +495,7 @@ static void mmc_decode_cid(struct mmc_card *card)
 
                case 2: /* MMC v2.0 - v2.2 */
                case 3: /* MMC v3.1 - v3.3 */
+               case 4: /* MMC v4 */
                        card->cid.manfid        = UNSTUFF_BITS(resp, 120, 8);
                        card->cid.oemid         = UNSTUFF_BITS(resp, 104, 16);
                        card->cid.prod_name[0]  = UNSTUFF_BITS(resp, 96, 8);