Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp348821ybi; Wed, 19 Jun 2019 00:11:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqztqgjaot+iWcsUxW1xLkOUibShIPvSyygdNDQ011A7xZDXDWcTx51yC0dOLBuuwpaCsqxD X-Received: by 2002:a17:902:1e2:: with SMTP id b89mr97962373plb.7.1560928289419; Wed, 19 Jun 2019 00:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560928289; cv=none; d=google.com; s=arc-20160816; b=HYJNi8croi1MDlT3J+m0YVp9h1SXdFeaSr+OEYuQIe7BhRLKQhQTC+zqMIX72Ojc5D 5fl8Jl13hx+r/BLfCYzEm0Gf484cvePJtm1Ny1aP6bE2LJZ+bqGoK5/Bg5JDYLJTzjVp 4sREjtBa6UXsfZnwatIGImCFsmPi7lnc982449L+vv7TI7IDRc6miG+F4Qh9J4DC2bKp qOcDF2tWPRQUtpQpY79LT836M8m+Z2n2MI1xVYCfNbaiOLp/wFFq2MLFno7VTrskfPfX vomHhndShK9AtdxcZNTOYLXxSzhQwLNjXYg0joHXOxK6w9W2mK/HhEWfyJS0UHFk25h9 W1qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=FMbQL6tlf03EyycSaZqgehkc2STnnZxI3esDJxcHuBk=; b=cpEm/YA1fbYq1bfaA/x8WyYtjRooeYAi607TVANgnDVcEGj0zwMpMvdYV4zY78zlTP 0WcmM3Mjak4k3Gslr75pPzCb6eaWo+egJn7BSSVPEphgW3CelZenvV94jIrHT8HNO/yr CxRqAR2UloeMMpNnaVnOJ5UK+GLXvUAeStq1lkGLSSzA63ydT6ra2lJfgXEInBSQfJDE gZmls4B2sMaF1dVCYevUHxmlPXlE3EabctjJL6/JwZ+5rBoP8XV8VB4HbJHgYDfrzokB Sx+IOJQHEJO0bvedxSMl6K+ZsPxRAvYSMafL9f5BBhRgya8Ar5dy8h3aHsU1KgswAWd8 jCYg== 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 ba7si14599551plb.105.2019.06.19.00.11.13; Wed, 19 Jun 2019 00:11:29 -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 S1731065AbfFSHLC (ORCPT + 99 others); Wed, 19 Jun 2019 03:11:02 -0400 Received: from inva021.nxp.com ([92.121.34.21]:34442 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbfFSHLC (ORCPT ); Wed, 19 Jun 2019 03:11:02 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9E26120017D; Wed, 19 Jun 2019 09:10:59 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 881702005B3; Wed, 19 Jun 2019 09:10:53 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C70FC402F6; Wed, 19 Jun 2019 15:10:45 +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, abel.vesa@nxp.com, ccaione@baylibre.com, leonard.crestez@nxp.com, aisheng.dong@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/2] clk: imx8mq: Keep uart clocks on during system boot Date: Wed, 19 Jun 2019 15:12:40 +0800 Message-Id: <20190619071240.38503-2-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190619071240.38503-1-Anson.Huang@nxp.com> References: <20190619071240.38503-1-Anson.Huang@nxp.com> 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-imx8mq.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 5fbc2a7..d407a07 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -272,6 +272,14 @@ static const char * const imx8mq_clko2_sels[] = {"osc_25m", "sys2_pll_200m", "sy static struct clk_onecell_data clk_data; +static struct clk ** const uart_clks[] = { + &clks[IMX8MQ_CLK_UART1_ROOT], + &clks[IMX8MQ_CLK_UART2_ROOT], + &clks[IMX8MQ_CLK_UART3_ROOT], + &clks[IMX8MQ_CLK_UART4_ROOT], + NULL +}; + static int imx8mq_clocks_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -555,6 +563,8 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) err = of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data); WARN_ON(err); + imx_register_uart_clocks(uart_clks); + return err; } -- 2.7.4