From patchwork Fri Apr 21 11:55:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13219897 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 98925C77B75 for ; Fri, 21 Apr 2023 11:56:37 +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=RtHM6q5kisoTmeSgJNZFZdGU+JzzBYsJe3jyw9sGDqM=; b=TBqrBi9z06sNpY 5jdeadSr3OiZ8kiwAEVUYlAZy2482TOND6d/4c32p+7h9C8fkupvj6ditKnnAOUOB3wP86nGHhNGV D5II/gp39fgE/9yEtd0sRFQ6PLArSjacpJP6eCPvva5uTIYzIvD0kGtk/qRX7wy7CUuwTooF2VZN2 9I3Gpt1dNLwHZdhDGMxy9PEGaQ3dkXj0UzQdOMUQfLzmyLISn4jF+4iyrPk4SjYduKkfciBq8ThbP AOyKTYfawxeqKcYAgRhiWp8ZDvx2AF+1Y4Pa4+hbPn48BWNEAbuTAsqQpdo5Pxz+JE0RHB27eXwBu l3ligMWv4yXXSwVLbNrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pppMV-00Anwu-15; Fri, 21 Apr 2023 11:55:35 +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 1pppMR-00AnvI-2y for linux-arm-kernel@lists.infradead.org; Fri, 21 Apr 2023 11:55:33 +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=1682078131; x=1713614131; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=S4ws0FzPH8SjDdWPwT3no8KmZrz65JddDqUiUhrKLr8=; b=Zfcb847PWiFNPYedp581FQSdYANIiNGjusLUWSwp/o/LWGG09/lrCJQB u1RRgUTrIPyrghEtbGraX3NhIAfpl3FBEtkJ19oPuMpWVyukD4oC3JxV+ p2RnZNNF4pd02oM6UEV2jwEqyyl+9fUPalA+iamAsteE4GDdRKexKZO5k MuSYn3xU1qpgO74pnRwgT7rbaaWgOwRsyDPNhYKBVbvjXISj1VXS869yf e0sym8gc84djN2WeJ9DHO+3WMwYo/GAB7ykgTYSw2Gi7A3P/Y/IeINWMV sJUVlEwzqPSFkEZsNO/IRegYrvKvSNBK1hLkAvX5HZQw6ZIRfIN/OygC3 w==; X-IronPort-AV: E=Sophos;i="5.99,214,1677538800"; d="scan'208";a="30482432" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 21 Apr 2023 13:55:23 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 21 Apr 2023 13:55:23 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 21 Apr 2023 13:55:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1682078123; x=1713614123; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=S4ws0FzPH8SjDdWPwT3no8KmZrz65JddDqUiUhrKLr8=; b=K8RqZZzo1uwi9WKzxDgaP1j+eZvk/RXbSfWyK5Irw3WHOQQPE1PvHBOp umBUXpYN2jUCwiyYtQ5W5mDq1LqABaeyeLMokPBnUO9BnvSlecVv/E6KX fAKfsTOGEso013q3A6o+5uTLv7NVBIhmpu1MLf1wWokoVzfe5PDc5wtRs +8TZWhyWGFxFSu55iOD0zJ/r0CpETNz1xWwqirvYHL9ffxIyegZJAbjGU zf0wyWyNNvKA7A1Ts90jYOtwkUJBfRQXA99XcGlw4Ed2EalDVuAmFvdE4 c1Tjma80eqDOp4AedxoDLltnFEzb4QtP04p51L7uguh6yiDIeG6PK38CG w==; X-IronPort-AV: E=Sophos;i="5.99,214,1677538800"; d="scan'208";a="30482431" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 21 Apr 2023 13:55:23 +0200 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 3916A280056; Fri, 21 Apr 2023 13:55:22 +0200 (CEST) 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 v2 1/1] clk: imx6ul: retain early UART clocks during kernel init Date: Fri, 21 Apr 2023 13:55:17 +0200 Message-Id: <20230421115517.1940990-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-20230421_045532_356408_ED9E2895 X-CRM114-Status: GOOD ( 12.31 ) 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 Reviewed-by: Peng Fan --- Changes in v2: * Rebased to next-20230420 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 e3696a88b5a3..f9394e94f69d 100644 --- a/drivers/clk/imx/clk-imx6ul.c +++ b/drivers/clk/imx/clk-imx6ul.c @@ -544,6 +544,8 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6UL_CLK_ENET1_REF_SEL]->clk, hws[IMX6UL_CLK_ENET_REF]->clk); clk_set_parent(hws[IMX6UL_CLK_ENET2_REF_SEL]->clk, hws[IMX6UL_CLK_ENET2_REF]->clk); + + imx_register_uart_clocks(); } CLK_OF_DECLARE(imx6ul, "fsl,imx6ul-ccm", imx6ul_clocks_init);