Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9265548ybi; Wed, 24 Jul 2019 01:02:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwf30RDdxPzIBqZqt1QQQx2Cle3A797YEzBJOpfHhy87MdDYC0apnMFVxaroz1xgnoKcU1h X-Received: by 2002:a17:90a:2430:: with SMTP id h45mr88557753pje.14.1563955321101; Wed, 24 Jul 2019 01:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563955321; cv=none; d=google.com; s=arc-20160816; b=j0Cd5zCm0YaiLk9T325Jl3tlqLfxQHN5M96i+wnlb0bRJlyxX7NG00nb1XVykFiDJO ApzTMqAF2h9VCgqtgeaABAsXImLAslAw5tXDA3LEtq281pNayaUdF738tFmB2Tm+egbj BrHGqKmLwP3ghXaIHIAc91OL9mK2fHskm5ajcE/qQqLmWCuQHom4AA0l9f0xhMQB3jO2 RWTmdYHHf88h+f9RDf6OVYJKzg6MRLRkdFbO59UiehIWKtYirTDdzMQ1pnL/BgEuQLQY vFgXgHuEoSGf8Hlg7M5tPEcVvCT4DbxK+a5Vvh8B41SwjG9o7LD9SuZackiSfbnU6t1V oLIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=I0sPQLSlxiabZkoW+rsz3rt+EQ/x14cTqT0Z6juzGBo=; b=pT48T1Yh0jEb61uxODlvBesUChqIo+UlfjC+U1QpQThvBfsbNdhKHDqmAV0QmKEGhu k6CCW/WNDDyIJlVTL5egP9MPntsAzcF6b351drH7QOuOWtku5TapXi6Gpk3neBfVfkkU jMAcNt6R8otu+FGcjXvGf+KzatGsY16pzT0nrzMHlkknvOVf327LHMpGZ4lj09x1qsJa O7oYQHkPs75s12k3W/JjAlWmvY6sDAaDlNRlZ6TyrHN0ZVe67yh4xzuDAIgYAvvnnth9 2N3CFLPNpA/n4CG1TJRfGB7T4TmDZhGbm/CYe2rY1qglT5EYcyGBmKzLeHEt51ykNpMV bQEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k70si15522595pgd.494.2019.07.24.01.01.45; Wed, 24 Jul 2019 01:02:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726463AbfGXH7q (ORCPT + 99 others); Wed, 24 Jul 2019 03:59:46 -0400 Received: from inva020.nxp.com ([92.121.34.13]:54610 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbfGXH7p (ORCPT ); Wed, 24 Jul 2019 03:59:45 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 13FCA1A0240; Wed, 24 Jul 2019 09:59:44 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id C7C801A031A; Wed, 24 Jul 2019 09:59:38 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 17F27402F6; Wed, 24 Jul 2019 15:59:32 +0800 (SGT) From: Anson.Huang@nxp.com To: mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH] clk: imx8mn: Keep uart clocks on for early console Date: Wed, 24 Jul 2019 15:50:17 +0800 Message-Id: <20190724075017.11003-1-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.9.5 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang Call imx_register_uart_clocks() API to keep uart clocks enabled when earlyprintk or earlycon is active. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mn.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 07481a5..ecd1062 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -355,6 +355,14 @@ static const char * const imx8mn_clko2_sels[] = {"osc_24m", "sys_pll2_200m", "sy static struct clk *clks[IMX8MN_CLK_END]; static struct clk_onecell_data clk_data; +static struct clk ** const uart_clks[] = { + &clks[IMX8MN_CLK_UART1_ROOT], + &clks[IMX8MN_CLK_UART2_ROOT], + &clks[IMX8MN_CLK_UART3_ROOT], + &clks[IMX8MN_CLK_UART4_ROOT], + NULL +}; + static int imx8mn_clocks_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -612,6 +620,8 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) goto unregister_clks; } + imx_register_uart_clocks(uart_clks); + return 0; unregister_clks: -- 2.7.4