From patchwork Fri Jun 26 11:16:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ivan T. Ivanov" X-Patchwork-Id: 50344 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D085B228FD for ; Fri, 26 Jun 2015 11:17:10 +0000 (UTC) Received: by wgfj7 with SMTP id j7sf26259927wgf.1 for ; Fri, 26 Jun 2015 04:17:09 -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:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=k7/nP7d4hBUhQzh8QpRfvWtcCs01wT6ekhJfvlv5N/s=; b=knuheJ8bxw+er4R2X4rCcgAm2qYL5mEH0NUbIBOYf3BVVbKrkxz59BbeVsBfpi7fnt eH9Kw6X8wu01ASgY3JCddEystCnNnLiVMjK689+XY3I3FqL7wUnSTqeMs5x1MOuQq4nT 3EGvKeOy3ipu6JZ6NpHgsgw3pGsZpFmqCs7begthapDKaf2uYlk7jbDP15cgShurT/7d TryfYnW9aZVAKmgdPbocefJ3DJ45Nqu88U5dVcNfFRRUKP1BVTSCv0ZBcdy8fKwSHxFu D7v6YMCMw1Acz9LKu2/IKuvOsAIdyL82N5dr29j9pTaQ1GvoZr+dmfzi94JKpU7qrhvg Ehsg== X-Gm-Message-State: ALoCoQnfboeUs63TZJ685tke+7vcE6Oz1Wultc/3SAo1DJDveZsqkn7uR/8IHKXS3+bPHNK2lT1z X-Received: by 10.113.11.3 with SMTP id ee3mr776469lbd.9.1435317429811; Fri, 26 Jun 2015 04:17:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.2 with SMTP id t2ls499454laz.8.gmail; Fri, 26 Jun 2015 04:17:09 -0700 (PDT) X-Received: by 10.152.37.67 with SMTP id w3mr1071887laj.123.1435317429623; Fri, 26 Jun 2015 04:17:09 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id w6si8387024lag.171.2015.06.26.04.17.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 04:17:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbbpo10 with SMTP id po10so62366903lbb.3 for ; Fri, 26 Jun 2015 04:17:09 -0700 (PDT) X-Received: by 10.152.36.102 with SMTP id p6mr1102491laj.19.1435317429400; Fri, 26 Jun 2015 04:17:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1244710lbb; Fri, 26 Jun 2015 04:17:08 -0700 (PDT) X-Received: by 10.67.7.199 with SMTP id de7mr2251007pad.107.1435317427674; Fri, 26 Jun 2015 04:17:07 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si50047814pdn.89.2015.06.26.04.17.06; Fri, 26 Jun 2015 04:17:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751893AbbFZLRF (ORCPT + 3 others); Fri, 26 Jun 2015 07:17:05 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:37461 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751680AbbFZLRE (ORCPT ); Fri, 26 Jun 2015 07:17:04 -0400 Received: by wicgi11 with SMTP id gi11so14814604wic.0 for ; Fri, 26 Jun 2015 04:17:03 -0700 (PDT) X-Received: by 10.180.88.99 with SMTP id bf3mr3900608wib.75.1435317423122; Fri, 26 Jun 2015 04:17:03 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by mx.google.com with ESMTPSA id m10sm1772451wib.17.2015.06.26.04.17.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jun 2015 04:17:02 -0700 (PDT) From: "Ivan T. Ivanov" To: Ulf Hansson Cc: Georgi Djakov , Stephen Boyd , Peter Griffin , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH] mmc: sdhci: msm: Boost controller core clock Date: Fri, 26 Jun 2015 14:16:57 +0300 Message-Id: <1435317417-369-1-git-send-email-ivan.ivanov@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-mmc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ivan.ivanov@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.217.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Ensure SDCC is working with maximum clock otherwise card detection could be extremely slow, up to 7 seconds. Signed-off-by: Ivan T. Ivanov --- drivers/mmc/host/sdhci-msm.c | 5 +++++ 1 file changed, 5 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 4a09f76..b2556bc 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -489,6 +489,11 @@ static int sdhci_msm_probe(struct platform_device *pdev) goto pclk_disable; } + /* Vote for maximum clock rate for maximum performance */ + ret = clk_set_rate(msm_host->clk, INT_MAX); + if (ret) + dev_warn(&pdev->dev, "core clock boost falied\n"); + ret = clk_prepare_enable(msm_host->clk); if (ret) goto pclk_disable;