Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11912107ybi; Fri, 26 Jul 2019 01:41:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw65fekgO9MqtWNXjDaH8a1F68+eJdNDBkHUNiJC6GKB4vWKEOxataVJJyNUgx0/i4WBkhY X-Received: by 2002:a63:1908:: with SMTP id z8mr88034756pgl.433.1564130465488; Fri, 26 Jul 2019 01:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564130465; cv=none; d=google.com; s=arc-20160816; b=A97I5kM0p0I8zmrcgs+GLWZEohvZTK3nx+lcwkdfwdJ4nc08M6fGxwMymdKKMnyVzt MfsQ0NKk5T3oGZL5ChQrc2wSX0M/rC0mdJqpRoJmRGjbCJpuGBMSa21KpcMl6z7p6Zyv dWS98RXxcxju3I2JSvrnslyIs51m9cfUuA4RFlDzF2IWXYa6XbPsLL6RS/I3NMq1iKMO EzIRjnw1YI7iE7JgRpTugomzEgblwUFVr6ZAwc7xdIpEEnJRXZ4I3hpeZv3Av9FVkW1N O6Lawf7ndlexkwDWjiXxgy1zrV1Kvt911wjyZ95p34HzB06d94DemDQEw0rLg2UZh+e/ Kx5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vvx0nvud1VCXFVmlTSWx3ki6H4H1RRKvnZOF74uYHMc=; b=sGUfWYmr0tFCrrrYjYX9wdYTiKuXDg+4tbdrSQUmHXZcdsosajH24HWYiTSQGSn/y9 R8P+ujemME8p/d11LqndwJx+7DwV4njIbu0koIPkQ6W9Xu2OC6DLNAre5nK+wCwCEeXx 4Duje7IAoB86QYJiS4MXWGRVoCSzzuKlVotuYx5KjqeZTlBZ7BW6mgZi/fGgU+2Lhwk9 Q1DMHcoXV1waRxMOp3OwUj4uCOduQYlU/3E+zaeHXWyYQDLiHFFUMSfH/udbnalMl6pM +H7tly4ipKY52pj/lYOgCJ5+5328rxLNQZggRRfcXXuXqnYS8AGY3gBF+xQqJslfNqyz 7cXw== 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 b6si17970379pjz.29.2019.07.26.01.40.50; Fri, 26 Jul 2019 01:41:05 -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 S1726529AbfGZIin (ORCPT + 99 others); Fri, 26 Jul 2019 04:38:43 -0400 Received: from inva020.nxp.com ([92.121.34.13]:51930 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfGZIim (ORCPT ); Fri, 26 Jul 2019 04:38:42 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 24CCF1A0413; Fri, 26 Jul 2019 10:38:41 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 17CB21A0966; Fri, 26 Jul 2019 10:38:41 +0200 (CEST) Received: from fsr-ub1664-175.ea.freescale.net (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id F0415205E6; Fri, 26 Jul 2019 10:38:40 +0200 (CEST) Date: Fri, 26 Jul 2019 11:38:40 +0300 From: Abel Vesa To: Anson.Huang@nxp.com Cc: 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, Linux-imx@nxp.com Subject: Re: [PATCH] clk: imx8mn: Keep uart clocks on for early console Message-ID: <20190726083840.k26dyjgpq4b56gab@fsr-ub1664-175> References: <20190724075017.11003-1-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190724075017.11003-1-Anson.Huang@nxp.com> User-Agent: NeoMutt/20180622 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 On 19-07-24 15:50:17, Anson.Huang@nxp.com wrote: > 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 Reviewed-by: Abel Vesa > --- > 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 >