From patchwork Mon Oct 6 17:15:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 5038801 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CACDE9F2F1 for ; Mon, 6 Oct 2014 17:18:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C98D20149 for ; Mon, 6 Oct 2014 17:18:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 4626A20145 for ; Mon, 6 Oct 2014 17:18:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XbBtR-0006TQ-92; Mon, 06 Oct 2014 17:16:17 +0000 Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XbBtO-0006Ka-Dj for linux-arm-kernel@lists.infradead.org; Mon, 06 Oct 2014 17:16:14 +0000 Received: by mail-pd0-f179.google.com with SMTP id r10so3613342pdi.10 for ; Mon, 06 Oct 2014 10:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=sjmszKjCHAGp8FahWyJhY6BpDavGhJXNFIFotMbzuV4=; b=lDBgSFmDdjKbNcQtYDULqRuIMz0Q6inPCtoP4/XSSPDGVfTBpKqB5Lnh9ksTOSdt32 by5bXmbmVMCLcHJt0NAw2GyAA0mZ1X0y7pFSQ3gzFLGsdVF4z8fHgvckKe8Cf9IBZ/oN ZrtOyB9tJ4HTLCP+EF+Bbn1AsWDPw62a84ur8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sjmszKjCHAGp8FahWyJhY6BpDavGhJXNFIFotMbzuV4=; b=M6K7W8MfWjESwnPHn3FNQ+y4dF+i3z3IkQQf4noOe/yq9cttX2FP2naqObabD9HmJi eL6CCQ6PUSa3E5FsUr1W3m80inuqIGG/gZiDB65xr7PPsId9yp3581Pc8W7/DewaDHav QAdQgLzyCxCLQHS9zNndwUBPZxjBlb4aTMq2xnP4znJJKiE77ASg0tPsJ3Wbrzg2KCpw Wtj26obYNv5KH+4GproZWzARjvUSfo6ovgrWrEqvMfGsKDwFSpvotcQPdAmXlWhiguat yeeq21QmXYw5cmwN4tLPiBT5aZzS8l9NDXnnXCHGElr35QzphoQ3Jz7of31gMfDTVwPt CD9g== X-Gm-Message-State: ALoCoQlr4XuiXusp4ZpuB1hTuZxBc9xfHdv92zNY0z57DyiyudgdXjmFMZyhHwQsgtjcUdiFI1ow X-Received: by 10.70.95.104 with SMTP id dj8mr19753691pdb.84.1412615752629; Mon, 06 Oct 2014 10:15:52 -0700 (PDT) Received: from tictac.mtv.corp.google.com (tictac.mtv.corp.google.com [172.22.162.15]) by mx.google.com with ESMTPSA id on3sm11619005pdb.71.2014.10.06.10.15.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Oct 2014 10:15:51 -0700 (PDT) From: Doug Anderson To: Heiko Stuebner , Mike Turquette Subject: [PATCH] clk: rockchip: Add CLK_SET_RATE_PARENT to aclk_cpu_pre Date: Mon, 6 Oct 2014 10:15:27 -0700 Message-Id: <1412615727-8772-1-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141006_101614_478052_171DB9E2 X-CRM114-Status: GOOD ( 10.78 ) X-Spam-Score: -0.8 (/) Cc: Doug Anderson , linux-kernel@vger.kernel.org, Kever Yang , linux-rockchip@lists.infradead.org, Sonny Rao , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no 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 We'd like to be able to call clk_set_rate() on aclk_cpu (a gate) at bootup. In order for this to have any effect we need its parent (aclk_cpu_pre) to percolate the rate change to _its_ parent (aclk_cpu_src). Add CLK_SET_RATE_PARENT to make this happen. Signed-off-by: Doug Anderson --- drivers/clk/rockchip/clk-rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index d053529..4d98f53 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -279,7 +279,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = { RK3288_CLKGATE_CON(0), 11, GFLAGS), COMPOSITE_NOGATE(0, "aclk_cpu_src", mux_aclk_cpu_src_p, 0, RK3288_CLKSEL_CON(1), 15, 1, MFLAGS, 3, 5, DFLAGS), - DIV(0, "aclk_cpu_pre", "aclk_cpu_src", 0, + DIV(0, "aclk_cpu_pre", "aclk_cpu_src", CLK_SET_RATE_PARENT, RK3288_CLKSEL_CON(1), 0, 3, DFLAGS), GATE(ACLK_CPU, "aclk_cpu", "aclk_cpu_pre", 0, RK3288_CLKGATE_CON(0), 3, GFLAGS),