From patchwork Wed Feb 5 08:37:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 3585151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1C25FC02DC for ; Wed, 5 Feb 2014 08:42:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 621D3201B6 for ; Wed, 5 Feb 2014 08:42:26 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1AF93201B4 for ; Wed, 5 Feb 2014 08:42:25 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WAy3I-0005aq-SF; Wed, 05 Feb 2014 08:41:49 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WAy39-0003Nx-Ud; Wed, 05 Feb 2014 08:41:39 +0000 Received: from mail-wi0-f182.google.com ([209.85.212.182]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WAy2y-0003Lf-NC for linux-arm-kernel@lists.infradead.org; Wed, 05 Feb 2014 08:41:29 +0000 Received: by mail-wi0-f182.google.com with SMTP id f8so291606wiw.15 for ; Wed, 05 Feb 2014 00:41:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lbgVAtf1oUuSczB2HuAepKQz8mWG1lTA71H6ew9Vrqs=; b=bzOMSKOlF8DuMG97c+oMTLHeAYjm0juLFvdlQbW+JIQlWi+ZGlzwpCnmJb/KHGCAmz IsfuL6NugDxIx/JqNnrP2D8Deez5HXHFkZRxxWqZf31w67bJWy8vC9kluB7W/iudVLAd 6aasS6K0cYFYYSV8eOgmVTLAsnNYUP3ndoVGVVnHK5WPWos4/K3DdfuzhPr42zGW+Lvi kWY+dbN7l22z+ObeszZQZz8YJgHjIFoKWuw8lpGw+PvnwrOJGDnwkBBTpKd5cmOZQDBv 74voLHqJoKj2dRIlvcNOAmzq7fzli+4ssNTrbuTFijUfmROomHcm0cQWZvS+ilMCDNny z4TQ== X-Received: by 10.180.9.71 with SMTP id x7mr1431670wia.55.1391589667013; Wed, 05 Feb 2014 00:41:07 -0800 (PST) Received: from stedf17-labo202.ds.jdsu.net. (4-161.80-90.static-ip.oleane.fr. [90.80.161.4]) by mx.google.com with ESMTPSA id j9sm59538503wjz.13.2014.02.05.00.41.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Feb 2014 00:41:06 -0800 (PST) From: Jean-Jacques Hiblot To: nicolas.ferre@atmel.com, mturquette@linaro.org Subject: [PATCH v2 2/4] clk: at91: propagate rate change on system clks Date: Wed, 5 Feb 2014 09:37:36 +0100 Message-Id: <1391589458-28018-3-git-send-email-jjhiblot@traphandler.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1391589458-28018-1-git-send-email-jjhiblot@traphandler.com> References: <1391589458-28018-1-git-send-email-jjhiblot@traphandler.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140205_034128_908705_BF7468BD X-CRM114-Status: GOOD ( 10.03 ) X-Spam-Score: -2.6 (--) Cc: jason@lakedaemon.net, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, b.brezillon@overkiz.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Boris BREZILLON System clks are just gates, and thus do not provide any rate operations. Authorize clk rate change to be propagated to system clk parents. Signed-off-by: Boris BREZILLON --- drivers/clk/at91/clk-system.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c index 8f7c043..a98557b 100644 --- a/drivers/clk/at91/clk-system.c +++ b/drivers/clk/at91/clk-system.c @@ -84,7 +84,8 @@ at91_clk_register_system(struct at91_pmc *pmc, const char *name, * (see drivers/memory) which would request and enable the ddrck clock. * When this is done we will be able to remove CLK_IGNORE_UNUSED flag. */ - init.flags = CLK_IGNORE_UNUSED; + init.flags = CLK_SET_RATE_GATE | CLK_SET_RATE_PARENT | + CLK_IGNORE_UNUSED; sys->id = id; sys->hw.init = &init;