From patchwork Mon Dec 4 13:34:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 120536 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4440052qgn; Mon, 4 Dec 2017 05:34:38 -0800 (PST) X-Google-Smtp-Source: AGs4zMZJfX08E0ClkXbQCCv+pL80uvqhdVubFm0TAejVVqCoOV4wH1gkATo+27JJtW8cX95Op/JJ X-Received: by 10.99.172.88 with SMTP id z24mr14283142pgn.46.1512394478775; Mon, 04 Dec 2017 05:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512394478; cv=none; d=google.com; s=arc-20160816; b=ap3TLH8wx64T9FDr5O44McAzR1la5nbTTyxTjcFB1T+kGUFu73ql3uJAWW2sg4yf0i SxjS/jiLWlXd6QQnsSJaLfq3wDwykeqwuJ2wcnco6KN66EZ9DWznoryqsbJBKEyYbR3+ 0RKlk2gKTmg3lAGGu6l0vA7KIo1KWg33ycwfszpaDxdirgBVWVpTG956bdS5/Cclrrp7 3V9dEPzDIXGep2CRILQIV74C7nFGUny2zsaNZt2i94zwGoeOoNW4wKU36IAew8Do0Xea bXoIq/hlKyner6/UaBbWdrJlGUatrY/qjDQ+ELSH3iZ3A8j1P3eY77qCYeX8nBSHkE6B Dy5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=r6QyYL56kBGBjfXsgDGRzXhXjnYsvKvEam/yv08FUfc=; b=iX7Klu2/qM6HatRGlyS3+lh/SxbbKK0dlUtZ+Zwuidn9SSK2YPZ09o2Ve9GSA4QQxp tmKwPabSGzXQb6yQwOX/lfeYC7vM9zdjoDJ50Bk7MBmJde15AqRt/9tRy8xbxFMakG0y oCDC4EOxtatMkejMp/QjmUJdd9cuuNN6kRRXOtTNaULKNusKOv4/68IdCjNE1PccdEjW RZaa2SRd2ICtkLqsldTGMi235TP/2Dz18YevRfpA1/YC60+T/qjzP/cw6ogAnv1PB7HY pwZ9zyQnoGtJTHSnrLQgK3ja6H2poMF2/1r3BwarpdtCkhE7h4oXCJOcOsBhbCK85WOp S5JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dv6g28A6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f14si9483898pgr.65.2017.12.04.05.34.38; Mon, 04 Dec 2017 05:34:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=dv6g28A6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754152AbdLDNeg (ORCPT + 28 others); Mon, 4 Dec 2017 08:34:36 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:43695 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753915AbdLDNed (ORCPT ); Mon, 4 Dec 2017 08:34:33 -0500 Received: by mail-wm0-f65.google.com with SMTP id n138so5830077wmg.2 for ; Mon, 04 Dec 2017 05:34:32 -0800 (PST) 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; bh=r6QyYL56kBGBjfXsgDGRzXhXjnYsvKvEam/yv08FUfc=; b=dv6g28A6KaRHRcfOBoaa2+vGIKyDXVBMZNLTyGel7xb+eUjP83cDuNLWpw9DsrHpz8 Op+T4GLAWwaAMWHAWzvSUKaX8s7ci9K7iw60ofA3ocS7vyJP2862tVkv5akwIZvb1mv0 oe1IrIb+UiTbBy6xQunAZPA5O6fO2ACOyB8tov0tVIdMHu7tugxRxMe30husQNLQqXJG V2z+qDHvGjgXrac5vpvM0R6mY1SuGBsjzH4WupjR5vfKgYYRAtkXZPbo2tDbH2j0Vl4J DAWhDbBvQVIAGiOW8lQL6K7urirAH6W+9RWy/RNPlB/p3Wba8Pn8oxw1+2v709DnlGEh vcpQ== 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; bh=r6QyYL56kBGBjfXsgDGRzXhXjnYsvKvEam/yv08FUfc=; b=Vtr6sXAeIijN0DzCbgwlg6F6SiGeQwYdyg+OZ6A0bOt1pBoQh/rNjlfwjBnfBq/go4 0Jw136U+8he5SFgxq/wi7mMDC2NLT7T4H+sJnR8s5N6R9ejKm2H7QdwJOdan2v+LnrEN lK1MNRwo//7DE/wbBgF0KB3NfmXHgascc7gUkJPTdJc3KKVzzgDbqZ6DWlesZjc3KTRQ Cj5/eC0tV3t8s44VWVl31fSGpnsnA9CluYN64mXHAfIqH9tWTFhq2jroOxTEcfR0oh54 98gC93I79uFWY3Ht7zK7OTURgXcE+eI9uyrHPJatOUilclMtuc/91kGsK6DLPDBe4n/v H5Aw== X-Gm-Message-State: AKGB3mLn3lwz669ZgdhXcal1UwrCaqkjX2m6YSZQosWkz3yvWR0I6293 kGeTRz+qP/pmDnJa9wyDP8ouw0+h X-Received: by 10.28.194.11 with SMTP id s11mr2999268wmf.143.1512394472209; Mon, 04 Dec 2017 05:34:32 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id m11sm12574570wrf.56.2017.12.04.05.34.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Dec 2017 05:34:31 -0800 (PST) From: Jerome Brunet To: Neil Armstrong Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: meson: gxbb: remove IGNORE_UNUSED from mmc clocks Date: Mon, 4 Dec 2017 14:34:28 +0100 Message-Id: <20171204133428.24631-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove CLK_IGNORE_UNUSED from mmc clocks. This was only needed while the mmc driver incorrectly used the xtal as source instead of the mmc clock. Now, the driver takes the correct clock, CCF is aware that the clock is being used and we can remove this flag. Signed-off-by: Jerome Brunet --- drivers/clk/meson/gxbb.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) -- 2.14.3 Acked-by: Kevin Hilman diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index ae385310e980..182ed00e2ec5 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -1031,17 +1031,7 @@ static struct clk_gate gxbb_sd_emmc_a_clk0 = { .ops = &clk_gate_ops, .parent_names = (const char *[]){ "sd_emmc_a_clk0_div" }, .num_parents = 1, - - /* - * FIXME: - * We need CLK_IGNORE_UNUSED because mmc DT node point to xtal - * instead of this clock. CCF would gate this on boot, killing - * the mmc controller. Please remove this flag once DT properly - * point to this clock instead of xtal - * - * Same goes for emmc B and C clocks - */ - .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, + .flags = CLK_SET_RATE_PARENT, }, }; @@ -1084,7 +1074,7 @@ static struct clk_gate gxbb_sd_emmc_b_clk0 = { .ops = &clk_gate_ops, .parent_names = (const char *[]){ "sd_emmc_b_clk0_div" }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, + .flags = CLK_SET_RATE_PARENT, }, }; @@ -1127,7 +1117,7 @@ static struct clk_gate gxbb_sd_emmc_c_clk0 = { .ops = &clk_gate_ops, .parent_names = (const char *[]){ "sd_emmc_c_clk0_div" }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED, + .flags = CLK_SET_RATE_PARENT, }, };