From patchwork Thu Jul 27 13:09:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9866863 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D0A786035E for ; Thu, 27 Jul 2017 13:11:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C23D4285F1 for ; Thu, 27 Jul 2017 13:11:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6E2D2881E; Thu, 27 Jul 2017 13:11:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4760D28634 for ; Thu, 27 Jul 2017 13:11:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Eeomw2F6eXTj3Oal2PfScTKtUyncLJgLisB5mosCcY4=; b=gvsXVUA5jCHWQJcAzLLgT439h2 Z/DkuYrCTULpRNRBh/TS70nw68P3KW4BGwvXu08oyq+KI/LOrt98A60c85TL3CbYQiYCufCP2R21p ANZl67NZoxGCae+Wqzdn+e2+/wHyjYfPQEMCL7o7JUjNp5AHFQp0hjeFUwVc4Pgh6w5e6b+hYKwrk zu7Tv8Y2JKhHoS6TbFDpzDV1ryQbIMjExNRZ/vmUj28jFKzgPh/06Nh0rMDzyxluodgdmAXyeMHIo eIHkB28dhhafmUqs5K/MNrbkY+vWqxw55JB6HWeZABvN3lK1nhv8RjUDnzbG2dnwY+0/AdhgwQizF baIjCo/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1daiZN-0002Zz-Ef; Thu, 27 Jul 2017 13:11:13 +0000 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1daiYP-0000PX-B0 for linux-amlogic@lists.infradead.org; Thu, 27 Jul 2017 13:10:19 +0000 Received: by mail-wr0-x22b.google.com with SMTP id y43so143424761wrd.3 for ; Thu, 27 Jul 2017 06:09:52 -0700 (PDT) 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:in-reply-to:references; bh=o9dKw1LLpSkdbZk5B6Gzjw1yhhRgPDK3OMlorZ4Z50Y=; b=wmY7pqaGSc8hpvvdHHaLcmqRSFKESTkMjctDttjwn5oawW2kose21XnelB/CYTZuPx xXrHsDw3oAKLN2V7cRHEX6eI+ytNNfrpoRy1ToBzDHJrMxjCpEXAv2446ku4Wo/5c+sf VG+5hS3f7elJAF8tXgs2sx4tOx6UBU2JtoXKZCeNuabSnXjzETesp9B6irpVcb8/xCjU 1I1Tu97h4b5wdc3tPLDhVhUAZ7cZdhTTAUmoe0P1mwng216xCKsrn+GUJoj+lxbRd2y9 Od5JPhCMfxEPOYHpelMNqEW6PIY5QOOiRSUj03Lv0cEIzTZrO2r5HJtRQH+qFbvlNgiC mIxQ== 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:in-reply-to :references; bh=o9dKw1LLpSkdbZk5B6Gzjw1yhhRgPDK3OMlorZ4Z50Y=; b=r+cAL++I5NvANRkGjsF8SuQatusgbCLrIpXHgvGsYsa4vGU6qiugHW8g2FkmWgmopa 2jtNA94d0oEyOK5apecFxy4W/N1sjHWFQn2W6JIuBBWe0iIM+haif44jN5FaBldfGYbc Rx/Rcm/OWWCY0ItaxXK48Rpru9yPH0M6qDDB5MjxVa0cdj/HVkl0LFN6QIfj3Mb1kaOV qekCf9Z66SPqj7uzw9C6a+Pf3m2YdFy83HGL3yv2zRrr+Wq/5vMgY3CodwAIM9vftoGp 0MYR3sf+++LAKVwqh2TL1GF7Suok9wo1E7kfrXSOO8pViY7BhFl+/EkB/9j8FxDKqIad +Dgw== X-Gm-Message-State: AIVw111qLXtbckPlxINUVKHGRU6UU/3QYKzdQSVv8QYs6dYXakKkLrT0 jwOHUSr6yF25mUYV X-Received: by 10.223.152.76 with SMTP id v70mr3290094wrb.156.1501160991437; Thu, 27 Jul 2017 06:09:51 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id t33sm22382433wrc.50.2017.07.27.06.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jul 2017 06:09:51 -0700 (PDT) From: Jerome Brunet To: Neil Armstrong , Michael Turquette , Stephen Boyd , Kevin Hilman Subject: [PATCH 2/2] clk: meson: gxbb: fix clk_mclk_i958 divider flags Date: Thu, 27 Jul 2017 15:09:40 +0200 Message-Id: <20170727130940.18005-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170727130940.18005-1-jbrunet@baylibre.com> References: <20170727130940.18005-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170727_061013_643634_B81A3B42 X-CRM114-Status: UNSURE ( 8.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Carlo Caione , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP CLK_DIVIDER_ROUND_CLOSEST was incorrectly put in the hw.init flags while it should have been in the divider flags Fixes: 3c277c247eab ("clk: meson: gxbb: add cts_mclk_i958") Signed-off-by: Jerome Brunet --- drivers/clk/meson/gxbb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index b1b72524153b..59a296b119ea 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -876,7 +876,7 @@ static struct clk_mux gxbb_cts_mclk_i958_sel = { /* Default parent unknown (register reset value: 0) */ .table = (u32[]){ 1, 2, 3 }, .lock = &clk_lock, - .hw.init = &(struct clk_init_data){ + .hw.init = &(struct clk_init_data) { .name = "cts_mclk_i958_sel", .ops = &clk_mux_ops, .parent_names = (const char *[]){ "mpll0", "mpll1", "mpll2" }, @@ -890,12 +890,13 @@ static struct clk_divider gxbb_cts_mclk_i958_div = { .shift = 16, .width = 8, .lock = &clk_lock, - .hw.init = &(struct clk_init_data){ + .flags = CLK_DIVIDER_ROUND_CLOSEST, + .hw.init = &(struct clk_init_data) { .name = "cts_mclk_i958_div", .ops = &clk_divider_ops, .parent_names = (const char *[]){ "cts_mclk_i958_sel" }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT | CLK_DIVIDER_ROUND_CLOSEST, + .flags = CLK_SET_RATE_PARENT, }, };