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: 5038791 Return-Path: X-Original-To: patchwork-linux-rockchip@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 6D5B49F2F1 for ; Mon, 6 Oct 2014 17:16:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 685912014A for ; Mon, 6 Oct 2014 17:16:17 +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 8B80420149 for ; Mon, 6 Oct 2014 17:16:16 +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 1XbBtQ-0006TB-40; Mon, 06 Oct 2014 17:16:16 +0000 Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XbBtO-0006KX-96 for linux-rockchip@lists.infradead.org; Mon, 06 Oct 2014 17:16:14 +0000 Received: by mail-pd0-f169.google.com with SMTP id w10so3626109pde.0 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=IlI2bJRjcR+dvheGHcYthNSKdQ6cCrXqeiNvTpYLjq4xdGsDSDtf7zaRkWjkh2WiC4 AILdeJ+4E9oCELEwN6TMFfYCRonWLhAqNsF0b70y/q5kG72voE4x23ZDBOC8niONxul4 UMwN7zPE9LJJkeCqxY3h6HKI6EOHIOzWdMPVtVjI5lfQHBrCO0smLy9cL5tfTs2umdHH PRi6tohs4bvFYMnBDM6mTnXmYFXoBghj7b9yxxP+sn6r9abyu328S4YybhgdJVWwBUjt x7doYOhY8k/fdZ/2HWsjfikWl7zYtq53xMXhgiwYGLAynoib2pEsktvfOTfAPPza1+g8 /VKQ== X-Gm-Message-State: ALoCoQl0EH2p/gd70gVi7uIVws92MY+ZauCasXRY2OM+LRQni2oJhURD5myOVM/ElRcsjn05ruUO 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_337746_080FCD6F X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) 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-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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),