From patchwork Mon Aug 21 16:02:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9913191 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 818F8602A0 for ; Mon, 21 Aug 2017 16:06:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78025287C6 for ; Mon, 21 Aug 2017 16:06:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C67E287CC; Mon, 21 Aug 2017 16:06:43 +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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW 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 EA632287C9 for ; Mon, 21 Aug 2017 16:06:42 +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=UI35lcQZA+9H1IyS+eB5yAzyuo5PaUzPOOFDTE3bvUk=; b=nwCShRCvveAZGWj4HLbY1du6x/ ajf2PVQSJ8OEKHqzlVF6mSXMPSEHVBvqmgVpxtqGHygPmRnWxnyM44u5cIGnBbL3FCfMyD48oxAAg yLzjoLhKmvfv06jhcBNrleBOtARa4F+GcTehU8Zq5AkJVBcm1S4BIOBaXSa69IZDAsB1t9HRnj20T WjNsMQ3iOEqTfAoN1hGA56hTozSOfDhXq1XTG52d2M1IKH1F3K+ZKzstWuSpx/bxczrjesfE82POm mBySH7+mKOAEo7Cet1a/Wm5kWbR/o/hI7Fw+dCKA/S2pKRJ9QhIfx6K+NpKuWe4hw/dyGh3jT3YXE 8echCAKA==; 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 1djpDq-0004Pc-UK; Mon, 21 Aug 2017 16:06:38 +0000 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1djpAn-0001Ek-0n for linux-arm-kernel@lists.infradead.org; Mon, 21 Aug 2017 16:03:36 +0000 Received: by mail-wr0-x232.google.com with SMTP id p14so34446657wrg.1 for ; Mon, 21 Aug 2017 09:03:08 -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=u7hTrQdYqj7AkUYcAATDscw4tsL/7QGtInLnc70kmWY=; b=ZFvXanSsVd57klfvFQRXRGcH1h8uo7z0y0LaCfWtUJH+k4ep2GWEcDwyRQ3cilypY9 ysq0KvgNKP0P1G192sqNURK/naoJHM2DnbBaQsVhk/mIfvKA+DrO/rCS1nw6j9qAtRqC kpfaWs4fa/RqGplbLAapp7AZOREtOgpd6AM5dlSaWHoBxuhZ7KEW5kqEJ/xIgU34LpWI UfDWESmZphFHPdK4iU7RRv2i92Dyh8i5MHwtB6qu61tYxdOdLpcGRtqJUrEdSZq0N2AT Lyt1qvrMW+DvTPh2jbhIMnH3S21m6CBsOKESU/NZurd7tZmZCPJ/ACNbVgo+XmnZlLWP FsPQ== 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=u7hTrQdYqj7AkUYcAATDscw4tsL/7QGtInLnc70kmWY=; b=dCgSeyR71QBrSNnNURCSAIPkmy1mLY573gv8kqSTvjTqLhZCAHHS3OplS84nHIBeVw EN+pHocqySysJzrBGsMbSfex9467SFnaHmJARmKpkSE9Yt6PZWr5Y8BekeJjj45OA2MB L+sXHNFrTT5tyTQlKbWQ1XkitpVXOscHHEouNHDdX8N2PNdMRpv9Dggp+CEwXBvihjLK A2LrOsgkG1D4noTQ2KZ+pZ5EaRR1vZPEDQroGLrn3FzvLiz3qIqWtTCCmC3WzbrgUZT2 cd+6eHQkuhqkvprjrk7tv+BXlla5LvP/26Km+IRCdHBYSbb1ruI8d05UJ0cxrJaDuiIv mefw== X-Gm-Message-State: AHYfb5hF2Hm+RP0cGVPEuC3C+YHVQPJcrFZLaizk3Hsvc2UV6Oktu84Y DTtMEDKSZNrD+OOIPxk= X-Received: by 10.223.171.209 with SMTP id s75mr2406646wrc.277.1503331387293; Mon, 21 Aug 2017 09:03:07 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 63sm8120063wra.30.2017.08.21.09.03.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 09:03:06 -0700 (PDT) From: Jerome Brunet To: Ulf Hansson , Kevin Hilman , Carlo Caione Subject: [PATCH v2 02/16] mmc: meson-gx: remove CLK_DIVIDER_ALLOW_ZERO clock flag Date: Mon, 21 Aug 2017 18:02:47 +0200 Message-Id: <20170821160301.21899-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170821160301.21899-1-jbrunet@baylibre.com> References: <20170821160301.21899-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170821_090329_294204_5F26D6E1 X-CRM114-Status: UNSURE ( 9.97 ) 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") Reviewed-by: Kevin Hilman 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)))