From patchwork Tue May 21 09:38:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj CD X-Patchwork-Id: 2596591 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B3994DFE75 for ; Tue, 21 May 2013 09:39:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751019Ab3EUJjD (ORCPT ); Tue, 21 May 2013 05:39:03 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:50915 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750718Ab3EUJjD (ORCPT ); Tue, 21 May 2013 05:39:03 -0400 Received: by mail-pa0-f54.google.com with SMTP id kx1so515886pab.27 for ; Tue, 21 May 2013 02:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=Qbp7zaUdXzs0563q3C/OTlNzSytQ0IWQDPRrSymWMpE=; b=u53kdptydkaV/NAAEmD+gPzHivs/l6xgqrSnqAWg4F+nVX2YU/agIxvxU8iPiR/DXH F+NwNMx896tz4uCU2JbXX28YA2I5o2LC0B8cM6gjrIoFdHIK5GhjQldKZcqc5Hbv63sB h6aS0eiLggyOlTvdyreAUM76/Nr3M72y8btww9Uq135YmcD7oyTt2laECogrRmIfaErB GnszTjNPQm3Kh8vj4Hyb0xDr+h02Fkc7u2jxH7aGDFigYD1o4+uaTr3eZlgujmCciRKq JL/kkUFcKWXenLfowb4uY3A2Ub+JJ8rSfwN6qdVj0XvoO4kNmy9tHTtxBGPbkH8ykDIL hJbQ== X-Received: by 10.68.233.65 with SMTP id tu1mr1782811pbc.153.1369129141893; Tue, 21 May 2013 02:39:01 -0700 (PDT) Received: from yuvaraj-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id cc15sm2651212pac.1.2013.05.21.02.38.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 May 2013 02:39:01 -0700 (PDT) From: Yuvaraj Kumar C D To: linux-mmc@vger.kernel.org, cjb@laptop.org, jh80.chung@samsung.com, tgih.jun@samsung.com Cc: Yuvaraj Kumar C D , Alim Akhtar Subject: [PATCH] mmc: core: Update the ext-csd.rev check for eMMC5.1 Date: Tue, 21 May 2013 15:08:43 +0530 Message-Id: <1369129124-31128-1-git-send-email-yuvaraj.cd@samsung.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org With the new eMMC5.1 spec,there is a new EXT_CSD register with the revision number(EXT_CSD_REV) 7.This patch updates the check for ext-csd.rev number as 7. Signed-off-by: Alim Akhtar Signed-off-by: Yuvaraj Kumar C D Reviewed-by: Doug Anderson Signed-off-by: Alim Akhtar --- drivers/mmc/core/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 0cbd1ef..73f58e0 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -293,7 +293,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd) } card->ext_csd.rev = ext_csd[EXT_CSD_REV]; - if (card->ext_csd.rev > 6) { + if (card->ext_csd.rev > 7) { pr_err("%s: unrecognised EXT_CSD revision %d\n", mmc_hostname(card->host), card->ext_csd.rev); err = -EINVAL;