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: 6680361 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 750C49F399 for ; Fri, 26 Jun 2015 11:17:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A35F52061A for ; Fri, 26 Jun 2015 11:17:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C2688206EC for ; Fri, 26 Jun 2015 11:17:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751793AbbFZLRF (ORCPT ); Fri, 26 Jun 2015 07:17:05 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:38277 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751801AbbFZLRE (ORCPT ); Fri, 26 Jun 2015 07:17:04 -0400 Received: by wibdq8 with SMTP id dq8so14797402wib.1 for ; Fri, 26 Jun 2015 04:17:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TCPvQVRCaPLw3OSNJlRW15Ifr4MyLYslKGWBEBsxB2k=; b=lzRrS2fDCdkddSZ3Wby0VVm4WvHgj84i91KOOn2yN8RYch/7zaVCZWIZN0JRTSMJZx ItkNJl0N/Kp4/p2Dw2TXAQh+k5aoFbsSAiAzH290yhPOefTgU72C52NpdVgzl3fJx9ul uI6AhrwbHJuszRKGahTEhtNORt6qOu0vJSCIMjjuOrlX13er/01KXr2KtCgapBPLzlHx EKmszcaAQSweSv6OsyTuh4N5sOrvCIbdq6RYBtSL7NVEp8ARaGCXyc1syCkuA02loOrq IPMXh+Z1V2f2wOGltu9lF/IKW5XoGxdokdPYZolF+gznrKsyd0bj5DnU1gFuqAxRTwD2 gZYA== X-Gm-Message-State: ALoCoQl1LpxT7UgycANTuQJgXMW9qX+z9qfmGbDKsDd04sk/FKupNaEDd4Srrxe5TX9j9MkXJ3qU 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Ensure SDCC is working with maximum clock otherwise card detection could be extremely slow, up to 7 seconds. Signed-off-by: Ivan T. Ivanov Acked-by: Stephen Boyd --- 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-arm-msm" 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;