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: 9548957 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 AFD1A604E0 for ; Wed, 1 Feb 2017 06:50:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0FA727E3E for ; Wed, 1 Feb 2017 06:50:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8EE072841D; Wed, 1 Feb 2017 06:50:22 +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=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 274C62811C for ; Wed, 1 Feb 2017 06:50:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cYok5-0004IJ-UA; Wed, 01 Feb 2017 06:50:09 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cYok3-00033t-A0 for linux-amlogic@lists.infradead.org; Wed, 01 Feb 2017 06:50:08 +0000 Received: by mail-wm0-x242.google.com with SMTP id c85so3599762wmi.1 for ; Tue, 31 Jan 2017 22:49:46 -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=X7nUyDiLICnTLyuDNG+KefKyQbCusVdpVPpqCl/vwhnvb/5SIeK9qGXw8UcbrvAqeW FctX26+3X9Gq1/IKe/YkLMQkocEp1EWQNiFNg5B/Plv4vwVCV3RiQOwchRaeeMGmDX7H TymEE4XEcb1TDN1vLSk9OrkEINPXP2fXh4GgM44TWheQ/9ppvJW29bY8t2BAY+f/g/z8 SVnGMoU3VxxuVujN/1fQL09qC/ZlgapevDMm21nLDH4J0u4JtPWfjBaHOE6aHd0VmfAh Fnf37tER+8NMFYRpVLZ50A5vrqzsj0qBfGduxs6E87f7U1yTV6aH2bRF8SAbUVz5Jc+1 V/Bw== X-Gm-Message-State: AIkVDXJII9ugm/b/Y5ny+ptwJvMizNwcdM954/ejxhpUvot3ueC0MIVt6WjQL1z10esYmg== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170131_225007_510457_557083A8 X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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 */