From patchwork Sun Apr 22 10:28:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10354473 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 0630D6019C for ; Sun, 22 Apr 2018 10:29:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E815128939 for ; Sun, 22 Apr 2018 10:29:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC68F2894D; Sun, 22 Apr 2018 10:29:17 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 6758D28939 for ; Sun, 22 Apr 2018 10:29:17 +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: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:In-Reply-To: References:List-Owner; bh=7BO2VtXvWxmZ2AI1tw4ywCRHBQ7FJZJ/FsJYtpA2my0=; b=tQH A1YTBw6w8hz3iwfQk7RDDbchxEGAyJwf15WQ6Ms26/uy/eTOuj253L9J8Iz4Mw/RieuJl0XjrTEH+ YCYEt0PQ0KJw3Yg+SPVGxXgJ7/zbD9Jsw5j59SnTz8+haQyTf1oBrKDTQ4UiXWJwBo6/Yf4IUUMmW ReNc8xKE4rlTjkhRlvlu8tApCBFDkRgL5qbS/klYgaKyCLogYm3H53wxOf5ACqqhgYzQ8zgL7nKHB cLpUwDgn4++enHygmyI8cJmiii5S0QMjRZrWuu3Rw+gjPJVBXSCyNJZn+q7Rik77OKMRgVLOBgtuK MdFNeJF9+VNgRd9ffBLPPL9acQGwzDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fACFA-0004vf-2L; Sun, 22 Apr 2018 10:29:16 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fACF7-0004uP-DA for linux-amlogic@lists.infradead.org; Sun, 22 Apr 2018 10:29:14 +0000 Received: by mail-wr0-x243.google.com with SMTP id p5-v6so5699673wre.12 for ; Sun, 22 Apr 2018 03:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=f9HpuKtgs9ziB9V2ntwd8qVZgMU6Wtw4r2otSKnqNjo=; b=oP226lrPI2lMNw8nz3Yl/jE8n7oT7SaeYeR8MkDJ11pNTW/F2VyvIcQ+TDOJY4FfqY KNMNs4DZM+A9KnZDUHzZbpC9KmwjPgZJxcmuhAfZfPwUNAjNicL2FeAHLokZ4qfrRuSX HVTc3nc7PS12m3KdOh+hVZg06I9CbXH3QlCJDwsPaCcmMiLJ/GvjKqpn5YTtLo++/uCA l/WOEgFOMas1c1Ni6BFUUjbBOoY65xnK6At6xKPd2aYCkB/z6GSGwNHGRvN6C1zEx0y5 t32YFmLcaOKTJkHg3XdIQ426UkhxuqTUkUX9CpzOtfeL7+Fk/pb8UYXkWCAFnmIcSHFl CjSQ== 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; bh=f9HpuKtgs9ziB9V2ntwd8qVZgMU6Wtw4r2otSKnqNjo=; b=YfQ0+w7Jq/wadqQy1nQgcn9xc7Dxvtfr4jr4KEZ4cqDBHYnkFLq3BGGUjV6J4rYjmw WhXZQqX1m9VwyZCZGgMmG+jzouvFXDg7eBh6Nq7aUJOJ6HrPM3hgr8BZj9cDvg8/t8ZN vhsKl5wJ6fEqRmC9dE+W/a0jItVOfenrcV1sxvbtgZQiHm16XPZl20AIeN0EB/Ej7yNA HYG0Z0pw5OUnHBAhUCzVI5fh9GVO76laYok35zU7FsjEJP2R2i6GEqhc6flSL/mq/XrN 3a25Jd7jGt3SQqqDERslfrRgvoq2ZjCUFpVs5uaA3oslBPzSZdp/PsyCfylWRo3s/MM5 nJAg== X-Gm-Message-State: ALQs6tCQ4//kBWkMrBUuC1mmR9zTx4Wp9t4pmk+rt6DXbfQ7uDaFeWqs gCYePRwflGWbNKfLtnnI1vk= X-Google-Smtp-Source: AIpwx4/lsnj584PdAh5r/OXR/VpKg80kSbR660gORfBr5f+UncbyBn5AyYEsuJ4LcXH7fhpglo/Hfw== X-Received: by 2002:adf:9d0d:: with SMTP id k13-v6mr14467691wre.179.1524392941134; Sun, 22 Apr 2018 03:29:01 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD74E1B04DD092444F21FA8F1.dip0.t-ipconnect.de. [2003:dc:d74e:1b04:dd09:2444:f21f:a8f1]) by smtp.googlemail.com with ESMTPSA id f7-v6sm14820696wrf.82.2018.04.22.03.28.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Apr 2018 03:29:00 -0700 (PDT) From: Martin Blumenstingl To: narmstrong@baylibre.com, jbrunet@baylibre.com, linux-amlogic@lists.infradead.org Subject: [PATCH clk-fixes] clk: meson: meson8b: fix meson8b_fclk_div3_div clock name Date: Sun, 22 Apr 2018 12:28:43 +0200 Message-Id: <20180422102843.31238-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.17.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180422_032913_444385_7D2ADCB1 X-CRM114-Status: GOOD ( 11.08 ) 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: sboyd@kernel.org, Martin Blumenstingl , mturquette@baylibre.com, linux-clk@vger.kernel.org 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 The names of all fclk divider gate clocks follow the naming schema "fclk_divN" and the name of all fclk fixed dividers follow the naming schema "fclk_divN_div". There's one exception to this rule: meson8b_fclk_div3_div's name is "fclk_div_div3". It's child clock meson8b_fclk_div3 however references it as "fclk_div3_div" (following the naming schema explained above). Fix the naming of the meson8b_fclk_div3_div clock to follow the naming schema. This also fixes serial console on my Meson8m2 board because "clk81" uses fclk_div3 as parent. However, since the hierarchy stops at meson8b_fclk_div3 there's no known parent clock and the rate of "clk81" and all of it's children (UART clock, SDIO MMC controller clock, ...) are all 0. Fixes: 05f814402d6174 ("clk: meson: add fdiv clock gates") Signed-off-by: Martin Blumenstingl Reviewed-by: Jerome Brunet --- drivers/clk/meson/meson8b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index cc2992493e0b..2c4ff6192852 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -253,7 +253,7 @@ static struct clk_fixed_factor meson8b_fclk_div3_div = { .mult = 1, .div = 3, .hw.init = &(struct clk_init_data){ - .name = "fclk_div_div3", + .name = "fclk_div3_div", .ops = &clk_fixed_factor_ops, .parent_names = (const char *[]){ "fixed_pll" }, .num_parents = 1,