From patchwork Tue Oct 21 17:19:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 39200 Return-Path: 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 ; Tue, 21 Oct 2014 17:19:33 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf1102524lbg.5 for ; 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 (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 ; 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 (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 ; 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 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Oct 2014 10:19:24 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Chris Ball 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: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- drivers/mmc/core/mmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)