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: 9866857 X-Patchwork-Delegate: sboyd@codeaurora.org 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 4C5D16035E for ; Thu, 27 Jul 2017 13:10:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E5A32866F for ; Thu, 27 Jul 2017 13:10:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3335B28828; Thu, 27 Jul 2017 13:10:36 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D729287E7 for ; Thu, 27 Jul 2017 13:10:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751763AbdG0NKJ (ORCPT ); Thu, 27 Jul 2017 09:10:09 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:36416 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbdG0NJw (ORCPT ); Thu, 27 Jul 2017 09:09:52 -0400 Received: by mail-wr0-f181.google.com with SMTP id y43so143424763wrd.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=f0HVsty+Uc5Bsh7qpKeTysDxFVF/IfSXgQHeidX+6Ybkc7SSV3huVRDlzgZqnIc7SI KGerfw7AQjf+ixtJYCQkNMAA/0yp6RmxwuyyJ/zy3notYAQEDsQUlGGsA1kdYTwOdnlU 89Orwl2XuWbcwcSSntDB1Je/ID8wAxBVpBf0FNIiJN5WPWUBVKtUfSLaahF7UKmzxIo4 Njivck883MQp2w8uoj6EFqaE/8BMG2ofsvLMdcVRfSk7MjtZL2qnlB7941ArR51uMYVk GusquS3vy2VHv5CJ3eTJmz6DQ26Sc2hsmHHP2qJruvCeFzIR5n5UGRUUzedWQzuKC28e hdRg== X-Gm-Message-State: AIVw112+vBpSKCRVQTNhlUdV6QGbmSODQRyZZUJyXTubtdfC7WnSimnb RIiNLgGaQVBztBGq 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 Cc: Jerome Brunet , Carlo Caione , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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, }, };