From patchwork Fri Jan 29 07:58:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 8160041 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6369BBEEE5 for ; Fri, 29 Jan 2016 08:00:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9094120221 for ; Fri, 29 Jan 2016 08:00:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C9C322021A for ; Fri, 29 Jan 2016 08:00:08 +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 1aP3wv-0002O5-SA; Fri, 29 Jan 2016 07:58:33 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aP3wq-00021C-Qr; Fri, 29 Jan 2016 07:58:30 +0000 Received: by mail-lf0-x242.google.com with SMTP id j99so1583374lfi.2; Thu, 28 Jan 2016 23:58:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F/IiWlhvM3fMsFOunQAIOkgSne4c++q4+wbLuvpADfA=; b=O4p7YnBu/pNYCMSHfDbHm9ZRYglKyK8pFmFdk7Bh5sHlJDZUOL81Ly026eZP5wmjte b2EbOzPsQ62Wf6RweAWPyHKRu3QuQkPGc/o12jQ20sG3Sy85uhKbcLXoG1s9Q1qvnc2H WjLx7jjiOhwexGRfjK32NP7e/CyLYbNnKSdPH3+wyXx4XmVI3MgqXawf9iOJUr1WcF6s QHOyAHd61SK3LoNqgYruHlr4PNTryf1iidwOg7tNEerjcnGZz6Y7/YXphQTCR17U/3u7 2G2aFcut42K3pkYnEOBZ0u2lfYsv1gGBtB51ABXzPNGjGJnJzXmfK35t4/eh3DsII7k4 IRBQ== 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:in-reply-to :references; bh=F/IiWlhvM3fMsFOunQAIOkgSne4c++q4+wbLuvpADfA=; b=GAtxk+t+RQoWwJuBFdiASopIeyjWN+QF6DlD0hcwZKwxuaMrXIZGeB+iRJTmX6HqLF PVCvwXFyB605nBM2OksYbNhx0u40Bj2JnQGhfD1aDSiaWrT58PqLejoZfAQwc/HT5cmI U4tS/WDr1kWv1TtgaOKXiy9ZE+8ik0a0uz65iFvSwKo7Q2fVNtzC4+7CD+fR5L81sAKo iCr4XZ03TlAdeigzYwuz+arYKyD2G2Yz7EQo41kCQPsnhlK6Phk2bGFzQe5Z/JuYe7KM 7qjDIHgAvodZ+AW8Cst3lyY/uw4YkPQQl67Yjbsq75jl5pk9OINJoEZfRr6rOG433/+K NAtA== X-Gm-Message-State: AG10YOTJF7YTNrIP2F0xbCCRQPloGUGwbkuL0BDPF2czelAarVsnjLSMfA0Ufs9hzhWZhA== X-Received: by 10.25.4.210 with SMTP id 201mr2850889lfe.47.1454054286476; Thu, 28 Jan 2016 23:58:06 -0800 (PST) Received: from ubuntu.lintech.ru ([185.35.119.87]) by smtp.gmail.com with ESMTPSA id ac10sm1926183lbc.44.2016.01.28.23.58.04 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jan 2016 23:58:05 -0800 (PST) From: Alexander Kochetkov To: Heiko Stuebner Subject: [PATCH v2] clk: rockchip: Allow sclk_i2s0 and i2s0_frac to change their parents rate on rk3188 Date: Fri, 29 Jan 2016 10:58:02 +0300 Message-Id: <1454054282-16303-1-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1453897469-2134-1-git-send-email-al.kochet@gmail.com> References: <1453897469-2134-1-git-send-email-al.kochet@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160128_235829_061025_221C7D52 X-CRM114-Status: UNSURE ( 8.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.6 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Alexander Kochetkov , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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=-0.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SBL_CSS, RP_MATCHES_RCVD, T_DKIM_INVALID,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 Allow sclk_i2s0 and i2s0_frac to change their parents rate as that the upstream dividers are purely there to feed sclk_i2s0 Tested on radxarock-lite. Signed-off-by: Alexander Kochetkov Changes in v2: Rebased on top of 4.5-rc1 of branch[1] [1] https://git.kernel.org/cgit/linux/kernel/git/mmind/linux-rockchip.git/log/?h=v4.6-clk/next --- drivers/clk/rockchip/clk-rk3188.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c index cc1d09d..629c65d 100644 --- a/drivers/clk/rockchip/clk-rk3188.c +++ b/drivers/clk/rockchip/clk-rk3188.c @@ -666,7 +666,7 @@ PNAME(mux_hsicphy_p) = { "sclk_otgphy0_480m", "sclk_otgphy1_480m", "gpll", "cpll" }; static struct rockchip_clk_branch rk3188_i2s0_fracmux __initdata = - MUX(SCLK_I2S0, "sclk_i2s0", mux_sclk_i2s0_p, 0, + MUX(SCLK_I2S0, "sclk_i2s0", mux_sclk_i2s0_p, CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(3), 8, 2, MFLAGS); static struct rockchip_clk_branch rk3188_clk_branches[] __initdata = { @@ -722,7 +722,7 @@ static struct rockchip_clk_branch rk3188_clk_branches[] __initdata = { COMPOSITE_NOMUX(0, "i2s0_pre", "i2s_src", 0, RK2928_CLKSEL_CON(3), 0, 7, DFLAGS, RK2928_CLKGATE_CON(0), 9, GFLAGS), - COMPOSITE_FRACMUX(0, "i2s0_frac", "i2s0_pre", 0, + COMPOSITE_FRACMUX(0, "i2s0_frac", "i2s0_pre", CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(7), 0, RK2928_CLKGATE_CON(0), 10, GFLAGS, &rk3188_i2s0_fracmux),