Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp656214ybt; Wed, 8 Jul 2020 08:35:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8AgJwUHtS1F8+Clbf29bpOsNqAWtc7c55fWFrqsi0X4hQeTjxT7fI4aeWn3P7fRCFMB9S X-Received: by 2002:a17:906:da19:: with SMTP id fi25mr51670652ejb.369.1594222513205; Wed, 08 Jul 2020 08:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594222513; cv=none; d=google.com; s=arc-20160816; b=ej8qPF0iRhlYd2xicWPMEIy38w8RJrE7/r93pIaJ386PQlTltZ2JBrjIyEF3dP9bk5 Wkq44hNaOWfTnlFUfw+oF+O6DUna6qR5GWvC7QmYos0a37XE2gQvW4Zk9DglfepQRena 3APEweL2hfCyuDzqh/8d61JHlpTOkclprMnt9JJkvV5lbjZSbT8fCKgbq9x/ANfFdHlW 6tfiy0apVNQb5yI626euVYIqdWCYS0JYsjqlIKKXKOKfhnqcQQSGD2SAkrXWtodAHcu9 Hy21zH1nwz3Ul2mtn0YFr+k7zs+0KFWs/cc0Tm0ZXgqpGOeCqlZatZLW2jgETuXSuE/m Ch7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=x2z292cq+Mj3tDGl5kC3gKYQbMr6YM2d9elDgyLFJFM=; b=p54qFNefiJhoHz9AnIz2H+wPPSeYY9y1Qn22cCt+eEZLzEmLQu1eC5thQ9JFxEvMhG tSYdX5Km6mkLr4t5p1CwHtoplWXfxuVoKmGXoHg4CRi+d8+Jf6gdkLYLrJtnFeAWogep Oobexg/p85qjeYED6ePybFguQPGUUD87/3efZBnT89kBdJsH5aTUEBFEF/P9e7+inQeH ZHPgz7+5FXwGj3lg3IwV6gi/tMePwKbS/5Lz1GFbgiEH6M3jHZoeZiM4dR8w6hjSC2+d xe3R1epxpAZVuNzsgI+Zx2kC8ArVGVjHBELRbzGJJlJ/EPz8920rA4kIFdoo+m27C3h7 Yunw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si117783ejj.109.2020.07.08.08.34.49; Wed, 08 Jul 2020 08:35:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730226AbgGHPee (ORCPT + 99 others); Wed, 8 Jul 2020 11:34:34 -0400 Received: from foss.arm.com ([217.140.110.172]:47126 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730124AbgGHPee (ORCPT ); Wed, 8 Jul 2020 11:34:34 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CB04B1FB; Wed, 8 Jul 2020 08:34:33 -0700 (PDT) Received: from [10.57.21.32] (unknown [10.57.21.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 75EEA3F237; Wed, 8 Jul 2020 08:34:32 -0700 (PDT) Subject: Re: [PATCH] clk: rockchip: mark pclk_uart2 as critical on rk3328 To: Johan Jonker , heiko@sntech.de Cc: sboyd@kernel.org, mturquette@baylibre.com, zhangqing@rock-chips.com, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20200708144528.20465-1-jbx6244@gmail.com> From: Robin Murphy Message-ID: <074d8691-2d88-4520-1e43-8c7eb5b82680@arm.com> Date: Wed, 8 Jul 2020 16:34:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200708144528.20465-1-jbx6244@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-08 15:45, Johan Jonker wrote: > The rk3328 uart2 port is used as boot console and to debug. > During the boot pclk_uart2 is disabled by a clk_disable_unused > initcall. Fix the uart2 function by marking pclk_uart2 > as critical on rk3328. Also add sclk_uart2 as that is needed > for the same DT node. Hmm, given that those are named in the DT as the "baudclk" and "apb_pclk" that dw8250_probe() explicitly claims, they really shouldn't be unused :/ On my RK3328 box they appear to be prepared and enabled OK: [robin@nemulon-9 ~]$ sudo grep uart2 /sys/kernel/debug/clk/clk_summary sclk_uart2 1 1 0 24000000 0 0 50000 pclk_uart2 1 1 0 75000000 0 0 50000 ... Robin. > Signed-off-by: Johan Jonker > --- > drivers/clk/rockchip/clk-rk3328.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/clk/rockchip/clk-rk3328.c b/drivers/clk/rockchip/clk-rk3328.c > index c186a1985..cb7749cb7 100644 > --- a/drivers/clk/rockchip/clk-rk3328.c > +++ b/drivers/clk/rockchip/clk-rk3328.c > @@ -875,6 +875,8 @@ static const char *const rk3328_critical_clocks[] __initconst = { > "aclk_gmac_niu", > "pclk_gmac_niu", > "pclk_phy_niu", > + "pclk_uart2", > + "sclk_uart2", > }; > > static void __init rk3328_clk_init(struct device_node *np) >