From patchwork Wed Jul 14 08:21:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sukumar Ghorai X-Patchwork-Id: 111916 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6E8LFkL017523 for ; Wed, 14 Jul 2010 08:21:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753200Ab0GNIVN (ORCPT ); Wed, 14 Jul 2010 04:21:13 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:46933 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752786Ab0GNIVM (ORCPT ); Wed, 14 Jul 2010 04:21:12 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o6E8L9GW020086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Jul 2010 03:21:11 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o6E8L7QJ021042; Wed, 14 Jul 2010 13:51:08 +0530 (IST) From: Sukumar Ghorai To: linux-mmc@vger.kernel.org, linux-omap@vger.kernel.org Cc: Sukumar Ghorai Subject: [PATCH] mmc: csd version check updated to support MMC v4.41 Date: Wed, 14 Jul 2010 13:51:07 +0530 Message-Id: <1279095667-21255-1-git-send-email-s-ghorai@ti.com> X-Mailer: git-send-email 1.5.4.7 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 14 Jul 2010 08:21:16 +0000 (UTC) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 89f7a25..525af33 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -122,7 +122,7 @@ static int mmc_decode_csd(struct mmc_card *card) * v1.2 has extra information in bits 15, 11 and 10. */ csd_struct = UNSTUFF_BITS(resp, 126, 2); - if (csd_struct != 1 && csd_struct != 2) { + if (csd_struct > 3) { printk(KERN_ERR "%s: unrecognised CSD structure version %d\n", mmc_hostname(card->host), csd_struct); return -EINVAL;