Message ID | 1413911953-19012-5-git-send-email-ulf.hansson@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDF57NG2XIHRBHVLTKRAKGQEJPP4OLA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 280032039B for <linaro@patches.linaro.org>; Tue, 21 Oct 2014 17:19:33 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf1102524lbg.5 for <linaro@patches.linaro.org>; Tue, 21 Oct 2014 10:19:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=EuuqKHUVjAZnpQCOIvIOf/4W1oNc2OdodOxwA15iE+A=; b=KYBEMx8TBGWlnwXvBtN3ViDwQQW4oCz+MYmLsw8fVeNHdeSGWH4mtPgpfICT8MSDlS Sun3nmGT92VEby9MY7v1gittfgM/gviTsvLBE8SODYqtxzQJSRBs3neBlANlL9/MDdl/ nUqrovaJuBna8AnW0cP3BatyPQ2sK+CmPyzy7A1KhbjYS/HOddXoiVFhuCM1S89D/jw1 5pukni1vzsTvKOSJScOtGCcD3mAG0KFduMgA6nETprVdqm8ahzd7RBfU8vPm5EgyGLI6 rWTuS5MaaTOhn+c1sqzKivklKFX5Tay7JXMF8tz+dVHnKM3gZ6h9Y5i0RmVlaWbIeRcn AdUw== X-Gm-Message-State: ALoCoQnlx67CTCYQ9Kh+tBKiuRw89V9BC3hS/boP3vHNpYdBiyVCpOq2+/N18ckkuRwcwiiSnAa5 X-Received: by 10.180.83.134 with SMTP id q6mr3791287wiy.7.1413911967116; Tue, 21 Oct 2014 10:19:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.170 with SMTP id d10ls80437lad.75.gmail; Tue, 21 Oct 2014 10:19:26 -0700 (PDT) X-Received: by 10.152.216.200 with SMTP id os8mr12553443lac.85.1413911966770; Tue, 21 Oct 2014 10:19:26 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id rs4si20010300lbb.12.2014.10.21.10.19.26 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 10:19:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id gf13so1637380lab.15 for <patchwork-forward@linaro.org>; Tue, 21 Oct 2014 10:19:26 -0700 (PDT) X-Received: by 10.112.130.41 with SMTP id ob9mr35585997lbb.74.1413911966652; Tue, 21 Oct 2014 10:19:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.84.229 with SMTP id c5csp545218lbz; Tue, 21 Oct 2014 10:19:26 -0700 (PDT) X-Received: by 10.152.163.101 with SMTP id yh5mr35267130lab.68.1413911966246; Tue, 21 Oct 2014 10:19:26 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id wt3si19982092lbb.44.2014.10.21.10.19.26 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 10:19:26 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id 10so1384815lbg.18 for <patches@linaro.org>; Tue, 21 Oct 2014 10:19:25 -0700 (PDT) X-Received: by 10.152.23.3 with SMTP id i3mr12046254laf.53.1413911965697; Tue, 21 Oct 2014 10:19:25 -0700 (PDT) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id uh7sm4791085lac.1.2014.10.21.10.19.23 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Oct 2014 10:19:24 -0700 (PDT) From: Ulf Hansson <ulf.hansson@linaro.org> To: linux-mmc@vger.kernel.org, Ulf Hansson <ulf.hansson@linaro.org>, Chris Ball <chris@printf.net> Subject: [PATCH 04/15] mmc: core: Remove redundant check of max_dtr while selecting timings Date: Tue, 21 Oct 2014 19:19:02 +0200 Message-Id: <1413911953-19012-5-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413911953-19012-1-git-send-email-ulf.hansson@linaro.org> References: <1413911953-19012-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 2da3a53..185d114 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1132,8 +1132,7 @@ static int mmc_select_timing(struct mmc_card *card) { int err = 0; - if ((card->csd.mmca_vsn < CSD_SPEC_VER_4 && - card->ext_csd.hs_max_dtr == 0)) + if (card->csd.mmca_vsn < CSD_SPEC_VER_4) goto bus_speed; if (card->mmc_avail_type & EXT_CSD_CARD_TYPE_HS200)
If the MMC spec version is < CSD_SPEC_VER_4, there aren't support for the EXT_CSD register. Since max_dtr is fetched from there, it will default to zero, which thus isn't needed to verify. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/mmc/core/mmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)