From patchwork Mon Jul 6 11:53:38 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: 6722341 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 D8DF49F38C for ; Mon, 6 Jul 2015 11:53:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06C7320584 for ; Mon, 6 Jul 2015 11:53:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F3F232056E for ; Mon, 6 Jul 2015 11:53:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754781AbbGFLxt (ORCPT ); Mon, 6 Jul 2015 07:53:49 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:35561 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754699AbbGFLxr (ORCPT ); Mon, 6 Jul 2015 07:53:47 -0400 Received: by wiga1 with SMTP id a1so226517837wig.0 for ; Mon, 06 Jul 2015 04:53:46 -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=ypxWptSPhweO/w8HugEyp/RF6cjGm3aEy216slW+hFY=; b=RksAvjKZCvhQR4Insd/r9MXhv+4Ksz+bp73prLdS53HobPBKDz34mblXfY1jyus8wY xQMBwHfbkcY/YPIY7jLa/lHfgiZaggGYam9aZoZGqO4s4G0eiy8plk9YXH2KIX0nuqx1 zIQbFJ7G+VFmX4pSYZGhyDa/szQR44WHweMOOcH1hiblfvDJt71HSo8SLIUfPfYKblZG 2CwBVuc8B91+lNO89BxV/Mdl8H+pjbfS4nVTY8j5mCiOjeESispNZ2TKrI5yXqWrkzzF fGYdjrOmhPCZOiiwjbHOMMlxVoff0kzWnzYnBTB0Nxds+nP98v0NsU9e/j/w0AqNYoGo 4GPg== X-Gm-Message-State: ALoCoQkv/pigtjrkMzCDHKP44UQgw69ZF8sPjr5Nso/xlXSB6YYtBAPiHpicKAGmBuPPpsG58h35 X-Received: by 10.180.78.136 with SMTP id b8mr50808081wix.89.1436183626729; Mon, 06 Jul 2015 04:53:46 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by mx.google.com with ESMTPSA id pd7sm27726903wjb.27.2015.07.06.04.53.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jul 2015 04:53:46 -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 v2] mmc: sdhci-msm: Boost controller core clock Date: Mon, 6 Jul 2015 14:53:38 +0300 Message-Id: <1436183618-15330-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=-7.6 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 Reviewed-by: Georgi Djakov Acked-by: Stephen Boyd --- Changes since v0: - s/falied/failed in warning message. 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..4bcee03 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 failed\n"); + ret = clk_prepare_enable(msm_host->clk); if (ret) goto pclk_disable;