Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2185135ybl; Thu, 15 Aug 2019 07:52:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQp7Q604u47ca7gGMrUJV/kk5uF4sYekd08VvoGD6bSog16miTKQuyWhvSPBV3TsGgWkKe X-Received: by 2002:a17:90a:e392:: with SMTP id b18mr2507112pjz.140.1565880746007; Thu, 15 Aug 2019 07:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565880746; cv=none; d=google.com; s=arc-20160816; b=w08YHSwKDhZ185XcyMqxeC3qG6tqAWu18Q9Vw//Z31GVKh6Mos7DcpeAHlD5lVdRm3 pd1A5+n6Vr4PgPdEpTsuMs4mNgsfDZJTJ4RtxaAUs0rr+Vhf+McCP7XuCIHb+gplciK8 V5yJOhNNMrMYN3WxuzCu7yNg/vjD4ob74+Y854wsWIXeqJAtkUi2qnbGe6QaqaWUojPW 45un86nIAf5Lbl+LfFjcqhHrjoffOgeDPEqYCYytPxQs31GxJDgOaHGJwmy52AMZftuh xmmLnWiVfNeO/4wZuX+BPUh949Y0eTayAfOv7eaBZ7zzxBPXHcoVxilloEhlDuDEpeCJ aOFw== 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:dkim-signature; bh=tNtdmyVFFNYp8n31Oa87YwnukMTlsB7iDWsfjRK39R4=; b=u+KlQOplenX7BC5sieykL57bEPXC6xJHhUQlhrZN/yS4Nbkfy8MFfR9wnoQtRtIHJu 8uP96osuvAymeI9cDEeXad8Fz8vwBvBv1dsebAlyCSMyiceUEYDhQEUYZop4TKaTNQXs CebvlErC1u2VBqDzZ7ulO+YzqfZwUcyS0aYr70BnqLcifkL/k/pp5DqF1CaOAFCEEB8e U654oMyV/hzx78nrYMSy3M4pfd1SduGqM1aNcU0uPfLKP3HKc8GW/avg8NUhYgodbCXj FAKsf8Ixnmf0Ywmg7qZ16sCnrXuElHukc9Uveu6zBFU9BVLucGwORZzER+tSWjDK+anx ga3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GA/F9BJw"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u27si1989386pgn.231.2019.08.15.07.52.10; Thu, 15 Aug 2019 07:52:25 -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; dkim=pass header.i=@linaro.org header.s=google header.b="GA/F9BJw"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730707AbfHOMpm (ORCPT + 99 others); Thu, 15 Aug 2019 08:45:42 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43961 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbfHOMpm (ORCPT ); Thu, 15 Aug 2019 08:45:42 -0400 Received: by mail-lj1-f195.google.com with SMTP id h15so2095119ljg.10 for ; Thu, 15 Aug 2019 05:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tNtdmyVFFNYp8n31Oa87YwnukMTlsB7iDWsfjRK39R4=; b=GA/F9BJw557px7gsgUF8TwW11POwwgTNmCreAMzDZU2CwJ8006JTnbL5lu57UNPySR mNoB1AVz6pclJ8QzeSV7E5TQaMKF+346znOHXoDe7SG+ws42m/tpXOLLQFzPsXUWeibz VQOcxlXRn377YpCHAGe2jtNwTQyladcq+yD6fWznIORIyr6xgTQ/f2LMQrmPTSnPt0kb oEfI3L+5P2w2F590YYCXv12ms/34q5w04ytyLaxKRmn6oFbNgTdWAkEDMOHU6AbIGSFt kdtM9KnJy+YTKthl8Rb6GZui7aWApWeb3FoPqu9YhmVknmGvRe/RD2EZDy0+tVz1FOC2 TN1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=tNtdmyVFFNYp8n31Oa87YwnukMTlsB7iDWsfjRK39R4=; b=WXvfUljqR33oTC7rPWhHo9DIMz/s8oJpaCb3+V0+kuA5nflSqlO9AAW4+T98Fg6b6v 3YfJ0zvXEoEjZQDb857vkDuk+egTmfxmSXjEEanqTO+FpfURJQ7+X1MqLw+VIp32Utta LN4NFm1YCsI/pMmhAGUqhlq+sPxvjAlpa8hunVZk+tyh60QUSWEqyISQpkjkF1VlNea+ RcuHTYZ6SijZiAWkCtDbu3Gak5aQPHW8xDLSzCjfLbvlC2fiI64sP+xMJq3Fl7xfjKNj E0SRYbMve+i1Vr+aw47y3flcYV/Hv+ehMGk5+BMCuWUkqfTka94h5Kb17WSPkGgheEJY NH/g== X-Gm-Message-State: APjAAAVAd8xbauSLbbm+CsJ9LYNHa4NaFN5KLrHdkmbh4ySrslD2kQ2N pLJZnTQzSyu/EstMkbNPPkAK0w== X-Received: by 2002:a2e:7818:: with SMTP id t24mr1084914ljc.210.1565873140325; Thu, 15 Aug 2019 05:45:40 -0700 (PDT) Received: from centauri (ua-84-219-138-247.bbcust.telenor.se. [84.219.138.247]) by smtp.gmail.com with ESMTPSA id f6sm468298lja.16.2019.08.15.05.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2019 05:45:39 -0700 (PDT) Date: Thu, 15 Aug 2019 14:45:37 +0200 From: Niklas Cassel To: Bjorn Andersson Cc: Andy Gross , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: qcs404-evb: Mark WCSS clocks protected Message-ID: <20190815124537.GA14491@centauri> References: <20190814030942.2638-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190814030942.2638-1-bjorn.andersson@linaro.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 13, 2019 at 08:09:42PM -0700, Bjorn Andersson wrote: > '7d0c76bdf227 ("clk: qcom: Add WCSS gcc clock control for QCS404")' > introduces two new clocks to gcc. These are not used before > clk_disable_unused() and as such the clock framework tries to disable > them. > > But on the EVB these registers are only accessible through TrustZone, so > these clocks must be marked as "protected" to prevent the clock code > from touching them. > > Numerical values are used as the constants are not yet available in a > common tree. > > Reported-by: Mark Brown > Reported-by: Niklas Cassel > Signed-off-by: Bjorn Andersson > --- > arch/arm64/boot/dts/qcom/qcs404-evb.dtsi | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi b/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi > index 2289b01ee9f0..501a7330dbc8 100644 > --- a/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi > +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dtsi > @@ -61,7 +61,9 @@ > protected-clocks = , > , > , > - ; > + , > + <141>, /* GCC_WCSS_Q6_AHB_CLK */ > + <142>; /* GCC_WCSS_Q6_AXIM_CLK */ > }; > > &pms405_spmi_regulators { > -- > 2.18.0 > Reviewed-by: Niklas Cassel