Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp675172pxu; Wed, 14 Oct 2020 10:44:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx6IJ3KH1s6OQo7yqMqjRoHfNToPohDFYEZ0i+w1ikgsMaw384+XUeL415NrpNQ2McoRLx X-Received: by 2002:a17:906:86ce:: with SMTP id j14mr200586ejy.158.1602697453515; Wed, 14 Oct 2020 10:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602697453; cv=none; d=google.com; s=arc-20160816; b=DyVmGpWJvSazNG3rMVwoMmrO6xD070xWoniH0B5FbNgF9Pip4I4tQLNn71ycCmes1s 2qzYx2AZcclUfxp0sHs7aDa8jl2tTl7VAUUgBp4Ju19cUb6Xyk4p1Uw11RKIzeN38oLU 7kKJ6zUtugN86GYYtC6T3jc/y37cHKQ2zpQqMH2TUaGMzauCi1RHSotKpFx5ALKKgyf5 VWjv9HuCu8u6QsBEG94gd+fpwPSBaLomVrn6VPF/dAIxZtBoAIMm/UUYt7AQbZhVC9Jo IKB0vXzzwKv7qRrbCH8r6I0ID7xrVfaKKpPSbPDlhTZCNLykaCHukdoOnVociNOOkoPf cpPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=GPUXWxygTTFK2yO2zrP4ocnR/PLfIqfLY8RH+LbjyTU=; b=RzApyoVoOc67jBRWhC58/J8o/R99kms6OUhgXCyrlCJe/bJjsfBk/vClz0kmpMEYzm BdQO7wYXRZxTfU67B+6tLsVyrKtxE4zqDgWJzlyTI4ATS3J31KNuYt6snsHwaO6K5YwL yQY+y7sLpCH73FTcMYHZuXVsDJxRhlI3ptplSm553/13Ft8k4mosQ9SNK64JWrzn9rvN 1FvmcphaxqazhLDn32vtfqpKAf1OcY/itfMAWRQMP9Pa3QawFIRg+K1K4ZQ/JUZXNiFt tbaHYDcy15PyWNm+rpgBOODbWpBSffUdG93Fmg+FbhpVbrBF779si2QUBhXwn/qM06Ez Ug0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jI4/ayXD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si238353eje.479.2020.10.14.10.43.50; Wed, 14 Oct 2020 10:44: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; dkim=pass header.i=@kernel.org header.s=default header.b="jI4/ayXD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732025AbgJNRQP (ORCPT + 99 others); Wed, 14 Oct 2020 13:16:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:48952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727162AbgJNRQP (ORCPT ); Wed, 14 Oct 2020 13:16:15 -0400 Received: from kernel.org (unknown [104.132.1.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 94F332173E; Wed, 14 Oct 2020 17:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602695774; bh=GPUXWxygTTFK2yO2zrP4ocnR/PLfIqfLY8RH+LbjyTU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=jI4/ayXD7kygEXy/J2VfN+TNA01XyTmvWho35XqQRwkmDmI0Z0RyH4uJT4RUfPu// Fvmno32y1rerarRfrD+M2Qd8qG7+b1xjPG7q7e7rYIMeQHtFqQI+LgiPvlE6pgFU3B aNnfPaK7GdIarcDiCUctU/0IJU7aWxDbZu5ChYsE= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20200928070108.14040-1-ryan_chen@aspeedtech.com> <20200928070108.14040-2-ryan_chen@aspeedtech.com> <160264382296.310579.9835482254268204873@swboyd.mtv.corp.google.com> Subject: Re: [PATCH 1/1] clk: aspeed: modify some default clks are critical From: Stephen Boyd Cc: Andrew Jeffery , Michael Turquette , Ryan Chen , BMC-SW , Linux ARM , linux-aspeed , linux-clk@vger.kernel.org, Linux Kernel Mailing List To: Joel Stanley Date: Wed, 14 Oct 2020 10:16:13 -0700 Message-ID: <160269577311.884498.8429245140509326318@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Joel Stanley (2020-10-13 22:28:00) > On Wed, 14 Oct 2020 at 02:50, Stephen Boyd wrote: > > > > Quoting Ryan Chen (2020-09-28 00:01:08) > > > In ASPEED SoC LCLK is LPC clock for all SuperIO device, UART1/UART2 a= re > > > default for Host SuperIO UART device, eSPI clk for Host eSPI bus acce= ss > > > eSPI slave channel, those clks can't be disable should keep default, > > > otherwise will affect Host side access SuperIO and SPI slave device. > > > > > > Signed-off-by: Ryan Chen > > > --- > > > > Is there resolution on this thread? >=20 > Not yet. >=20 > We have a system where the BMC (management controller) controls some > clocks, but the peripherals that it's clocking are outside the BMC's > control. In this case, the host processor us using some UARTs and what > not independent of any code running on the BMC. >=20 > Ryan wants to have them marked as critical so the BMC never powers them d= own. >=20 > However, there are systems that don't use this part of the soc, so for > those implementations they are not critical and Linux on the BMC can > turn them off. >=20 > Do you have any thoughts? Has anyone solved a similar problem already? >=20 Is this critical clocks in DT? Where we want to have different DT for different device configurations to indicate that some clks should be marked critical so they're never turned off and other times they aren't so they're turned off? It also sounds sort of like the protected-clocks binding. Where you don't want to touch certain clks depending on the usage configuration of the SoC. There is a patch to make that generic that I haven't applied because it looks wrong at first glance[1]. Maybe not registering those clks to the framework on the configuration that Ryan has is good enough? [1] https://lore.kernel.org/r/20200903040015.5627-2-samuel@sholland.org