From patchwork Tue Jan 31 20:57:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9548499 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 5A1AE60415 for ; Tue, 31 Jan 2017 21:06:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C9E326E73 for ; Tue, 31 Jan 2017 21:06:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4141327BA5; Tue, 31 Jan 2017 21:06:38 +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 D9BF626E73 for ; Tue, 31 Jan 2017 21:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751091AbdAaVGh (ORCPT ); Tue, 31 Jan 2017 16:06:37 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33045 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751032AbdAaVGg (ORCPT ); Tue, 31 Jan 2017 16:06:36 -0500 Received: by mail-wm0-f67.google.com with SMTP id v77so942384wmv.0 for ; Tue, 31 Jan 2017 13:06:35 -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=M7l0Ejsbd5y9nx2dY+1X2pLN6laDXi1fMxM6Ovmf/e4=; b=iw9yhcTkkp5L8zcrGtiSqCgxRigHipbrMQAVod6kNypK8c2GcFIYwGxNzCDdjGIVKo lXmefKSrYI03nJLB57a1NDHoABRixTX3vw1ER215GKzNbfYV/3+bwGR3L1HfZ7TGjopW wFiF0UhOK0jk6z6BziridKPuVII8pynWs786uNGbeHCCk8yrDF2yLr7+mjrPXRT5CwEB HpBcv5s5AuBcyTpaBNkDYDrZQyGHgsvU/D9AyGrWOOOKm0rNMCdO36mZH3E3O3lb8u+4 8y6lQaJqwakei+LmX+QSg3N4KBSGNRHv8NE5sStaMMCwmE3jFqn1xJGyvYnbckBwCS81 EZhQ== 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=M7l0Ejsbd5y9nx2dY+1X2pLN6laDXi1fMxM6Ovmf/e4=; b=gXNybtm2jBv6L1kPGuTHSRdJu8It1+neUlYkv+QH9h+Jugq8HOzDUIbmAFhiJA9rZG ARk3mSQ/0ojtfO7w+oBzNoiHbpkUTXAqL++H8THAT6qqamapoivxRQh1PHX4snCOIDIZ nZFGDQuA1oM2sG1THhDyrBBo9bciau9qfaPmP9RmjhReIsLe276kp0t0XLChwqhMln2n aPAqKIF9aRMrm70mrLb1VNiUUr3NKXbXxVVMNxBj9pWxdD7dTmIja+sz4wF9uQq1rIvX v9NplozTdftgJOFwmi/IuonksbpQ9m2ANogJU3Hjz0aX6nDBpzck4vLajl0ewulQ1uXD qfSA== X-Gm-Message-State: AIkVDXJ62NG/Dtyl6vZlBAmPnLFCKXPXaWSur5SAfO5pa4h16cEwBsX8BzkCxcLUiVBLXw== X-Received: by 10.28.150.194 with SMTP id y185mr21335732wmd.47.1485896354421; Tue, 31 Jan 2017 12:59:14 -0800 (PST) Received: from ?IPv6:2003:c6:ebc5:6c00:bc31:e1d5:58cd:f318? (p200300C6EBC56C00BC31E1D558CDF318.dip0.t-ipconnect.de. [2003:c6:ebc5:6c00:bc31:e1d5:58cd:f318]) by smtp.googlemail.com with ESMTPSA id y127sm25740608wmg.12.2017.01.31.12.59.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 12:59:13 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 1/9] mmc: meson-gx: fix setting f_min To: Ulf Hansson Cc: Carlo Caione , Kevin Hilman , linux-mmc@vger.kernel.org Message-ID: <476265c8-b7e8-acdb-1964-5663c629caa3@gmail.com> Date: Tue, 31 Jan 2017 21:57:48 +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 --- 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 */