From patchwork Mon Sep 20 07:25:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 194332 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 o8K7Ptuw029511 for ; Mon, 20 Sep 2010 07:25:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752978Ab0ITHZz (ORCPT ); Mon, 20 Sep 2010 03:25:55 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:49050 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752239Ab0ITHZy (ORCPT ); Mon, 20 Sep 2010 03:25:54 -0400 Received: by iwn5 with SMTP id 5so4044699iwn.19 for ; Mon, 20 Sep 2010 00:25:54 -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=f+iG7RCL/OpYrPkmzldlhEQlWgw9LLauP84X6aIieMo=; b=Sur0Myfto1OpMiYy41trL4eSTHvxgpR5CpbK8GRN11JxkRjxcrLj1CqlDMaY63TuBS XAbkVVcTxZocRZZv2TGApF7lXoaHKoujXuoSDp9WnERPojve/M6yClY0SDRtT9Bt8bfA m4Wt2/NWaRbAWaXey9zK641iVlty4e4+cxykQ= 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=hDxY1HQBp3v2aCW08x+G707wz3D8TKqrODqWfU6GM68fZhZ0VgbHTQt6xaLd5sPqRd TXI85rfGxLLfBRsTswaNSCp1U5Yn8Ttj2njzcybkFG2wq+5Arvrb7oOywRKrkJ3DJY3R UwJo1zz9ERe4hmmgNviMxaSkc5TemkSwfb2SU= MIME-Version: 1.0 Received: by 10.231.172.75 with SMTP id k11mr9770508ibz.4.1284967554084; Mon, 20 Sep 2010 00:25:54 -0700 (PDT) Received: by 10.231.206.203 with HTTP; Mon, 20 Sep 2010 00:25:54 -0700 (PDT) Date: Mon, 20 Sep 2010 15:25:54 +0800 Message-ID: Subject: [patch] mmc: fix init f_min 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:25:56 +0000 (UTC) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 5db49b1..9114c87 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -910,9 +910,9 @@ static void mmc_power_up(struct mmc_host *host) if (host->f_min > 400000) { pr_warning("%s: Minimum clock frequency too high for " "identification mode\n", mmc_hostname(host)); - host->ios.clock = host->f_min; - } else host->ios.clock = 400000; + } else + host->ios.clock = host->f_min; host->ios.power_mode = MMC_POWER_ON; mmc_set_ios(host);