From patchwork Wed Feb 1 06:48:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9548935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3BCF860415 for ; Wed, 1 Feb 2017 06:49:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BF8B27E3E for ; Wed, 1 Feb 2017 06:49:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F72E2811C; Wed, 1 Feb 2017 06:49:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6B7727E3E for ; Wed, 1 Feb 2017 06:49:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751118AbdBAGtr (ORCPT ); Wed, 1 Feb 2017 01:49:47 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35168 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbdBAGtq (ORCPT ); Wed, 1 Feb 2017 01:49:46 -0500 Received: by mail-wm0-f66.google.com with SMTP id u63so3591264wmu.2 for ; Tue, 31 Jan 2017 22:49:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=F1zNDoixy0dfeih3yHmZfbVYw6R02k+9OniLtJDdctU=; b=hLI53R65JzlJKPJU/0haNU/0HnTUsZ0Y1vHWUwu9vb6cEOZYbhw97VFd20o4CnZ8FR H1iAOOeTSGCU/Cav+MHvuGjOJqXX7zk18crm83kbFCLjFz2s9uHT4aaTQCrXx12AnByD GCBRboiuIoTnWNp9XrjBEzrWnZXrb33I2vZUjkJqQ8t1YNtRONRpv/lComs+zdAgmqML I3bEqT31fDw/60eB+EjNX6ea1LBlJbIixBZk09UZpSfimrkBdtUAqQXPgB80mA4JGA2A TzHzht+pC6PJYgG5VLNRdOTSwTIwW1ebwUNOlE3PZliH2xyIBJ/2v+eZF8q1t1rlFUue LnPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=F1zNDoixy0dfeih3yHmZfbVYw6R02k+9OniLtJDdctU=; b=m7v+68wZ04Qf9g//T6vmjXwJ0f8JEN6Dntf3rq9Kn/1zELti+qR8lPqAunB5xxKVee CN1+WCre4Rg/Fzw3JgJm6ROptJdzDkUUemMK/CP3ITjagPK6HBSGlqaWrZ74MUZPtrej uiWx9yx4BO1MjTru+ZZWkAi138LIg2lfEyh4iEPpRlxaeWL1DBJb/SsecJ4iHS3cOnc+ 1sVYWxjjHpgD0zWCtGIElUpd+VUifn9hJYMuZtQu7E7/L2bjIOl4FbTivwwvV34VbflC Q5xSy2+G3kiLDXZ8NAWI7KhcJAMPzsB0Y0XEUmgLMD9faT6EztuMGO+UUxNutkludWxD xItQ== X-Gm-Message-State: AIkVDXIbFXiY2X37N/QzkfmPIKjVWXI6F21z00vM7onY7KBqkzJ/XfF5shhbyIZhkcPelg== X-Received: by 10.28.236.93 with SMTP id k90mr1301124wmh.40.1485931784760; Tue, 31 Jan 2017 22:49:44 -0800 (PST) Received: from ?IPv6:2003:c6:ebc5:6c00:c4cb:dab7:ab36:4977? (p200300C6EBC56C00C4CBDAB7AB364977.dip0.t-ipconnect.de. [2003:c6:ebc5:6c00:c4cb:dab7:ab36:4977]) by smtp.googlemail.com with ESMTPSA id 123sm27836765wml.6.2017.01.31.22.49.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 22:49:44 -0800 (PST) From: Heiner Kallweit Subject: [PATCH v2 1/9] mmc: meson-gx: fix setting f_min To: Ulf Hansson , Carlo Caione , Kevin Hilman Cc: linux-mmc@vger.kernel.org, linux-amlogic@lists.infradead.org Message-ID: Date: Wed, 1 Feb 2017 07:48:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently f_min is set to 4 MHz whilst the comment states 400 MHz. I think the itention is to set f_min to 400 kHz. Change value and comment accordingly. Signed-off-by: Heiner Kallweit Acked-by: Kevin Hilman --- v2: - added acked-by --- drivers/mmc/host/meson-gx-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 5eca88bc..da3cce31 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -268,7 +268,7 @@ static int meson_mmc_clk_init(struct meson_host *host) if (f_min != UINT_MAX) f_min = DIV_ROUND_UP(CLK_SRC_XTAL_RATE, CLK_DIV_MAX); else - f_min = 4000000; /* default min: 400 MHz */ + f_min = 400000; /* default min: 400 kHz */ host->mmc->f_min = f_min; /* create the mux */