From patchwork Tue Mar 21 13:53:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13182804 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DCB80C74A5B for ; Tue, 21 Mar 2023 13:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=19l22kwIDkIDrqi2jroFAY77IS5C8Q8L8p8CvDks9is=; b=L9G6rVLoDsU9z9 aO8SCLhNa1gxKmfd2eLePSkJS4Z24HKSSlbVK8GfBBf5+iQ/moz56r34dEiNOemDF3E/wM8AyVt8L wallzAUPBCDVeFlJUWApHDm8YR6+RKDRnOuLblwqYrWesT/N5ye3Jx7htf9JnbPHHUmv7gQxFhXx3 1f9prvhp2w4PoYNWzeBh6sZIk+zTFkapstYi9kJToMd3FEG/7qh64w71oi3FvIpZsp+sbtUsOlBkl a1/5NiVZcDv3w/AcJOg8uR3OQGRQYZXl1OcoEXxO+1cTAWGSYjIYUIMk9Ht5pp5rPNw6KVhNnpoEy AB+Er2lJ3f2LymX64Xeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pecRT-00CcNU-1T; Tue, 21 Mar 2023 13:54:23 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pecRO-00CcKO-33 for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2023 13:54:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1679406859; x=1710942859; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rHSsFFLzvJOIk/IC2B/yzNA5kF3fMYLm3qlpsB04MMo=; b=HJzR0L42fcXwIHD+Nrn/9Mj7gBn7nKPge1/TLZwXXeIYhgO8DOyV6nwC QHPqWK9abFVqMBYBBHM3yvkpXFh1j5n/B6VZ1urpUTM720llTbty5iv0K n2Ze/2yJ/P1iRCznmC0KZ5powb/XmaMlhmTADhu0p0jm+1MtxKNC3zqdC KsWCR78N1oVAe+FP4Sjrjjv+RU8o03wn4rPpslCGqdczMndurOq2jQr9v LJcdFwk5dhAnUL7XHozg3XJczRcdneXCWxfdHJCaaw0aObrJro7mEjNw0 9Kc4oCBJ5j1NwT/DXBVP7ZVCOvzadVczLFTVJ2hruV72P6JCLW01BdbFn g==; X-IronPort-AV: E=Sophos;i="5.98,279,1673910000"; d="scan'208";a="29834292" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 21 Mar 2023 14:54:16 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 21 Mar 2023 14:54:16 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 21 Mar 2023 14:54:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1679406856; x=1710942856; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rHSsFFLzvJOIk/IC2B/yzNA5kF3fMYLm3qlpsB04MMo=; b=DHfjHV4YPQB9XJBNW4NTcKRgp6OYlqNTCxuB3qjwfgMKPHwkdo/u+XGK PsbXqp87vNvG+FYZPqWwkBU5mTkpuFe2T2DOiQERDRqpprH3fDd0yEU0I Jcy2O+gSJvbe4aA/pdYqt4IiD3jLTxmUsqJVW59brNufVCrv0ZpKuQnoK re5+OxQpN1XNzLhPBB20XWR2Cs+9sBrE8yryf5Brw5v7QvaxXinrmQayh DW7BOVRrnX56ar0xozzuB1fcZRkeULICci9W3c8rP1JL5EdXKdDMNCUz2 xMAswpZ1zQemor9dtcx3zrJD/LTOcry9lYFR3Ux7Es9CWAvA5bhEHR4oi Q==; X-IronPort-AV: E=Sophos;i="5.98,279,1673910000"; d="scan'208";a="29834291" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 21 Mar 2023 14:54:16 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id D313D280056; Tue, 21 Mar 2023 14:54:15 +0100 (CET) From: Alexander Stein To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] clk: imx6ul: retain early UART clocks during kernel init Date: Tue, 21 Mar 2023 14:53:24 +0100 Message-Id: <20230321135324.1286359-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230321_065419_467074_A37BCEA2 X-CRM114-Status: GOOD ( 11.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Make sure to keep UART clocks enabled during kernel init if earlyprintk or earlycon are active. Signed-off-by: Alexander Stein --- Apparently i.MX6UL was missed in commit 0822f933735c ("clk: imx6: retain early UART clocks during kernel init"). But as commit 379c9a24cc23 ("clk: imx: Fix reparenting of UARTs not associated with stdout") changes the calling signature it's not warranting a Fixes for the old commit. drivers/clk/imx/clk-imx6ul.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c index 206e4c43f68f..26578e407d3e 100644 --- a/drivers/clk/imx/clk-imx6ul.c +++ b/drivers/clk/imx/clk-imx6ul.c @@ -510,6 +510,8 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6ULL_CLK_EPDC_PRE_SEL]->clk, hws[IMX6UL_CLK_PLL3_PFD2]->clk); clk_set_parent(hws[IMX6UL_CLK_ENFC_SEL]->clk, hws[IMX6UL_CLK_PLL2_PFD2]->clk); + + imx_register_uart_clocks(2); } CLK_OF_DECLARE(imx6ul, "fsl,imx6ul-ccm", imx6ul_clocks_init);