From patchwork Wed Nov 28 09:24:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1814551 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9B3703FD1A for ; Wed, 28 Nov 2012 09:24:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753767Ab2K1JYs (ORCPT ); Wed, 28 Nov 2012 04:24:48 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:62590 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752569Ab2K1JYR (ORCPT ); Wed, 28 Nov 2012 04:24:17 -0500 Received: from axis700.grange (dslb-178-006-249-114.pools.arcor-ip.net [178.6.249.114]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LmPME-1T4rM40xhi-00ZHOC; Wed, 28 Nov 2012 10:24:14 +0100 Received: by axis700.grange (Postfix, from userid 1000) id B283340B99; Wed, 28 Nov 2012 10:24:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id AF17240B98; Wed, 28 Nov 2012 10:24:13 +0100 (CET) Date: Wed, 28 Nov 2012 10:24:13 +0100 (CET) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-mmc@vger.kernel.org cc: linux-sh@vger.kernel.org, Chris Ball Subject: [PATCH] mmc: sh_mobile_sdhi: fix clock frequency printing Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:vK12OzQhRueQr/+eU9FzcPuxevAJswgPYJIAYZS7hWp 1YXRxIC0yqHAE29jsLDnbzxox/cIl6/nfSNT+/iIa20XtB/QVY k4OaHXm2btDaDVxDcDYoba/u6FhDoGtqC9QJV6pna8pjgLcjcP 6rg7h0wVcWUSeHxyqkh+dmpYWpVC+HWNy2rmI8A5+gZMtFO0Jz l5p7bpsBDJH1QI5u9Nc8JVc9KSbyQmIVJdezj6mnF3tlr6bAki SSSfNOghwQxpWndjBK31sr1zYNJ6jN71MUJmn6jvFMS/rpp0Z/ 2sjCZ4rIZhtEELcg/CflEpJx/cnK572m2Yw4dhBWBLkbnoC6dw 0RdmRWPaiUt3DSduvwG6LJgKAe55+EmYmZ/9tuBoOO6isPPnwr nQ3RDHUVYxuuQ== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org During its probing the SDHI driver prints out the clock frequency, but does it wrongly, always reporting 0Hz. Use the MMC host frequency value to fix this issue. Signed-off-by: Guennadi Liakhovetski Reviewed-by: Simon Horman --- drivers/mmc/host/sh_mobile_sdhi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 22ac8e7..d6ff853 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -248,7 +248,7 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev) dev_info(&pdev->dev, "%s base at 0x%08lx clock rate %u MHz\n", mmc_hostname(host->mmc), (unsigned long) (platform_get_resource(pdev, IORESOURCE_MEM, 0)->start), - mmc_data->hclk / 1000000); + host->mmc->f_max / 1000000); return ret;