From patchwork Mon Sep 20 07:32:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 194342 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8K7X0KQ030330 for ; Mon, 20 Sep 2010 07:33:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751915Ab0ITHc7 (ORCPT ); Mon, 20 Sep 2010 03:32:59 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:48794 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751833Ab0ITHc7 (ORCPT ); Mon, 20 Sep 2010 03:32:59 -0400 Received: by iwn5 with SMTP id 5so4049148iwn.19 for ; Mon, 20 Sep 2010 00:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=ftYUgFO3NjNPhCbbwxs35jHnfwPjcuIcr2Gq/9axMxk=; b=why0iPri3J2VJXMFmxOohJkkVLSLV6Y4qY36gEwp8yuEkA005FkoLr67lrPXKWNwwN MRnnS6M++UPcYWjnp0IDtX02nf0QdNUE8LJu7sRBTf4Vt5e/fAd0eMFJyKbxDLtlG03S 3BUA71R9mLyyT5xkbcPL4/gIbNIbJflaQb9SI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=EW2cyna5vYK/KV3lB2MAQVg5yfTSXcqUVfZtlsXBdhA63Nhb55ZZF3A5jLDfjDuzmO WkRJOzkLE8PhVADjh3Kjlcn/+Ur9Lx506P8p8fh+PWMzqr/Mf0uiYW4AXl26jKxkbbOh AGuAbyA03lnUqhK8sIhlcfwZgKihacSPRJ08g= MIME-Version: 1.0 Received: by 10.231.60.4 with SMTP id n4mr10011066ibh.18.1284967978998; Mon, 20 Sep 2010 00:32:58 -0700 (PDT) Received: by 10.231.206.203 with HTTP; Mon, 20 Sep 2010 00:32:58 -0700 (PDT) Date: Mon, 20 Sep 2010 03:32:58 -0400 Message-ID: Subject: [patch] sdhci: correct f_min in sd 3.0 From: zhangfei gao To: Chris Ball Cc: linux-mmc@vger.kernel.org, Kyungmin Park Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 20 Sep 2010 07:33:00 +0000 (UTC) From 83140093bbcd325605135c23740b30b6eeec778f Mon Sep 17 00:00:00 2001 From: Zhangfei Gao Date: Mon, 20 Sep 2010 15:15:18 -0400 Subject: [PATCH 4/4] sdhci: correct f_min in sd 3.0 Change-Id: Ie8604dbb5296b15da67071164564f21c60652b60 Signed-off-by: Zhangfei Gao --- drivers/mmc/host/sdhci.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index f980fb7..5346803 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1835,6 +1835,8 @@ int sdhci_add_host(struct sdhci_host *host) mmc->ops = &sdhci_ops; if (host->ops->get_min_clock) mmc->f_min = host->ops->get_min_clock(host); + else if (host->version >= SDHCI_SPEC_300) + mmc->f_min = host->max_clk / 2046; else mmc->f_min = host->max_clk / 256; mmc->f_max = host->max_clk; -- 1.7.0.4