From patchwork Fri Aug 4 17:43:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9881863 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 D88F9602B8 for ; Fri, 4 Aug 2017 17:48:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C65C22891B for ; Fri, 4 Aug 2017 17:48:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB3FE2896E; Fri, 4 Aug 2017 17:48:15 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham 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 86C612891B for ; Fri, 4 Aug 2017 17:48:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=jkOkcoYTWYEdNDvcMj3IIAkjeo/5k8g57JB4IBVyD30=; b=ioedg9QNW4jjAloEv4GfRz71Y1 PFe0oGb+g6bAkpGGmZWLu6eQNcP/kWy1umy8/n3PrjrsfS+lzDHb8CxR4oupkIUN+/3zWS5/0kvEZ 8Gvn4S/VD9gfivPt6MWg6mRvg1mYCmLRUqCKOde8C5GWMzFVj32acA3gvy4VzHJm4J6TZ1eI3s2rw YoYQ+IHWA8AXguloxVGEX2jofPeacwaeVSSOREFXr3yQPlySlDryudyZn3CxI32orY7Ex5S1T2jDr 9IJzvdWFE6C0gLTASO1TZhYUvEUo37ymto2OFSgtwLRnwzgrtdaxW3VsB+gtYnDkSikUVGFFZUnad rGAJKmzg==; 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 1ddghl-0001t9-PJ; Fri, 04 Aug 2017 17:48:09 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ddge8-0005la-K6 for linux-arm-kernel@lists.infradead.org; Fri, 04 Aug 2017 17:44:34 +0000 Received: by mail-wm0-x234.google.com with SMTP id t201so25435724wmt.0 for ; Fri, 04 Aug 2017 10:44:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YyugWRQVFdBqoDpyoDAlLoHlagA2SUyDYbaHUI4KAS8=; b=PuUhr99zCLboRNf729H7LLFzrix7NItWwL8Qw7OiZLf58iQACS9Pz4r/zj55Y3MQ9C vD7/qJ6pR6FIZ20xG+VvWx+W+VEgUY3eM5QYYFgb2iyPT9sQ2gN4HLQUKJiStJIgZs05 94skjlAuSDVUxrv0cB4vzvWtI6wy4ePymX6FG0gmcfq72qJCmdTuzZoT9twvIBdfE/Vw Z66M1KoydGNDu44vHMLxxj4pItPNJjdGqzTOR/+GpPMYtaK/8MOAYOHAI8ShroKEJf9u BeB14785sHU8UMF2YD4QvCnFCzjQD6/EurVNJFP6Fif1/+azcwtp0wMsF1C6fh+49MDp dIiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YyugWRQVFdBqoDpyoDAlLoHlagA2SUyDYbaHUI4KAS8=; b=PmixdAE+bhgji1VFIvSsHt885Ur+URTgZNWDHwymMWPdZnDgCin+l46rq4A1VRZmdj +FLiX+L2eGOEBArLTYLtnhDPAODlQmyO+I+f9BaAJniQNAh+Y3gV/XRdDlGJVjGXF6M3 fsoyLuQULJWJNlsCSBc8DHeBAnolu65AJRdfP/o02UKuADeSDG5g7D8qQivgmiAMBwmu tXilypwdSGa80ii6eeZMPYhrvHsTvfqvXGlJo8YZcSf9lNfVXN4zSHdFxRCgV9DeKzzs NF4CJ6ihwNB2d6lYSzQ+uo85VFThI2rCJKFHg5pd95W7xJY8EHef3VLMc2j6J7HUs5dt faxQ== X-Gm-Message-State: AHYfb5jM32i3d6riG/V3o5P2FYUwml2CH/SLK/fDCdSXNHxlOZ49bdXp Jl1Gzbyna/3yU77+ X-Received: by 10.28.236.8 with SMTP id k8mr1723590wmh.139.1501868642691; Fri, 04 Aug 2017 10:44:02 -0700 (PDT) Received: from localhost.localdomain (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id p17sm996082wma.45.2017.08.04.10.44.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Aug 2017 10:44:02 -0700 (PDT) From: Jerome Brunet To: Ulf Hansson , Kevin Hilman , Carlo Caione Subject: [PATCH 02/14] mmc: meson-gx: remove CLK_DIVIDER_ALLOW_ZERO clock flag Date: Fri, 4 Aug 2017 19:43:41 +0200 Message-Id: <20170804174353.16486-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170804174353.16486-1-jbrunet@baylibre.com> References: <20170804174353.16486-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170804_104425_278744_B8111539 X-CRM114-Status: UNSURE ( 8.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove CLK_DIVIDER_ALLOW_ZERO. This flag means that a 1 based divider with a 0 value will behave as a bypass clock The mmc divider does not behave like this, a 0 value disables the clock Remove this flag so CCF never allows a 0 value on this clock Fixes: 51c5d8447bd7 ("MMC: meson: initial support for GX platforms") Signed-off-by: Jerome Brunet --- 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 4217287923d4..d480a8052a06 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -389,7 +389,7 @@ static int meson_mmc_clk_init(struct meson_host *host) host->cfg_div.width = __builtin_popcountl(CLK_DIV_MASK); host->cfg_div.hw.init = &init; host->cfg_div.flags = CLK_DIVIDER_ONE_BASED | - CLK_DIVIDER_ROUND_CLOSEST | CLK_DIVIDER_ALLOW_ZERO; + CLK_DIVIDER_ROUND_CLOSEST; host->cfg_div_clk = devm_clk_register(host->dev, &host->cfg_div.hw); if (WARN_ON(PTR_ERR_OR_ZERO(host->cfg_div_clk)))