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: 9866859 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 C260D6035E for ; Thu, 27 Jul 2017 13:11:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B403728470 for ; Thu, 27 Jul 2017 13:11:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8B40287E7; Thu, 27 Jul 2017 13:11:02 +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 3C03528470 for ; Thu, 27 Jul 2017 13:11:02 +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=1XKTQZsPsuUzNSKlaxjRIdIjYaKWXDGsB/ZOQQr6lz4=; b=W5/PuU0ggoyJf7IQcINatVSfAH lkqFDCUvL0ULBL37vDd8dVMdBG38E0tpdLW1765YrEPNd5OsOci48HC94bWTZ3wOSDfIxxjLcjGw3 RXj2jNqeqkDGOZYIPXnRCfN6pvmYh4IqDWWTb9jECXJ8az7iFEL0AVDF2MGLNNS2E5F7rp3lbltRM nRa/VOUVhMkNcs7o7SDQMggZ+Cu0DebwzUE0sSp/0pUCTPjcQcwl2zHj6mjB5y45dTnp+a4YzLzkw ae2B55lR6X5RsKr2PIdcNieHULM2Wpr53bXgtCIajzYn4kw0GHZyihbAB14c4NiRisvZ+utivd9vC HVw4VQ7Q==; 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 1daiZ5-0002HR-PU; Thu, 27 Jul 2017 13:10:55 +0000 Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1daiYP-0000PY-Am for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2017 13:10:18 +0000 Received: by mail-wr0-x22f.google.com with SMTP id k71so89906614wrc.2 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=oRAnRR9Zeco2/YWQn9/RMtK2Xq1Nhl1lOv6evorK+d1Tft0LLLzLgRbcS8wK4az7f+ HV92WedpICEvDPo2W+UdnrR1snYBZcPpIHjhzEOVGJF/We548ECt5725ZtVb0ieVWvw7 tN2nFCwpINxuBliDJkG52bkGDCwi3g9JOn3qOQB3RF3KMC0QX6wvz3ejT41GAHL4/qmv zPdUBS5TkHhD/Ix4eMzpnttDEFSZ3DdxhYbEP5Ou/SsQBNbofiDHnWeSWuSffQvm9Xff /sfw4VukepUrz6ObPhzaCA9862iq8Q/KEKO5+1gFU4EpQa1A+Tp2/CQ5ssx9tIrevxUB HAUA== X-Gm-Message-State: AIVw112uc5G77bYwufTAXTyaoX0UpZZF6k54qfX6QVwnoN+fW2mC/QQU ONS9g+rxBaOA+Goi 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_649543_DBAA8B89 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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, }, };