Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp254212ybl; Tue, 13 Aug 2019 20:10:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxerfjitEve4kJR4+iblatp6B5lo9377OLmK7T9qgINouYMtaDOFyM9Ms/oRJ4lmZ//EQB+ X-Received: by 2002:a63:7e17:: with SMTP id z23mr37382650pgc.14.1565752235152; Tue, 13 Aug 2019 20:10:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565752235; cv=none; d=google.com; s=arc-20160816; b=x1y3kYE1NEjIyGoucaMVxhLD23S3Ck3UiOBHb6St8He9OzLXDMHm/BeOJFSYZCAqnR YclIoKbRvJnRS7fDyCYh0PupdJUTm8Q2tL/Fhq6eK4Kgzl8QjVic2aTTbgcABh5CB4SJ 9nSkNx5Vk0M+vzmK0d4MEsy4datG+o55yVvTwEW/9VuoXt1UaZb3DTW0qMu5ydk2pED9 lz4qEH61bmUYFmNLMZzN/5e78oNrgWxm84jRxtkte4QZ+ozvwnoV5iSxCCEDEF17Mwv7 M8FkgOB31uO54/k0yEF8SjYzS5gO2BCgvNBMYnwjEp+KM/Y0cftOqOST/lmlXLmJ84xe M3Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=HT5agnFB9Ua1f+HiJVMbjVMLi62oFKHY9sExG5RcmRA=; b=i5YRQ+JZveaq5+B+OVFyoYS4H7mRCGZlLTA8/gyQvEdA4+C4JeW9cJKI65isxkFVBJ ilL5Oh6DKUYDC0tPWqKhEovprurKhql3x+Of5IsT6BO4Ch56gVUwk2JJZiS++oaylRuD /KtwmbsD0gYDikgXdzXsSk0YQ7HVaQE2P3m38M09EJk7g1eCYdStEiPGgkpVOuZ74nUj 37qVpHuYHqWbOkRAxeX3upfaH1InacIKxzg7HLDlFpv1xYPzIQHoChHVAxhTDPLTXiX0 497Gje2jy12DyvCGbVUJwGeauLxWuP8pSP0lLc8M5yQPQ+rtFiRLG9PJGKpKw9T6f/Qf 9pzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iolgrg+y; 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 t4si4156539plb.366.2019.08.13.20.10.19; Tue, 13 Aug 2019 20:10:35 -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=iolgrg+y; 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 S1727215AbfHNDJr (ORCPT + 99 others); Tue, 13 Aug 2019 23:09:47 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46345 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbfHNDJr (ORCPT ); Tue, 13 Aug 2019 23:09:47 -0400 Received: by mail-pg1-f193.google.com with SMTP id w3so15112180pgt.13 for ; Tue, 13 Aug 2019 20:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=HT5agnFB9Ua1f+HiJVMbjVMLi62oFKHY9sExG5RcmRA=; b=iolgrg+yXRNATYsbEOlu9D72Y6cuxWB1oF5q6TXekIkX8mRpEK69FdqiNFv7XLjA+t FcGQ/WsyRg41D/BOnJQYjxSQgmko05AoDrQP8l7PRwVl3zym4hrqsRdFf/C5NJdKmsX7 GZ2P20Urso3DH3FtiPIJArW43M2VOidJwP1fvmpZusTymGcOa/i60G3smXH+F1/miznf 3QsZV4UthI9GdIyw26ruyfIBbZ0N/faj+B/5VeUhED07B+AhHEdLce+Nzuahj7O4xDG8 Ff1sKUAeEmJL2mQ+1/OMUBZSm4fHnJw2ydQ1XD5QzHBVi1DI4NPaFbhBCeCAO6AQvivo v6HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HT5agnFB9Ua1f+HiJVMbjVMLi62oFKHY9sExG5RcmRA=; b=kM8kKdn3P74p5yHIxNj6PkHctAoFbmbRT5z8iZkViw3uiuVjuEXPk7waoSn2UaU/Tl /rv9jnoJF0nOFy9jHn12UyeH6SClD21ySJRYfWb3GQK9i2tHb69DH0MZp9fY0z2id/OX zqrdSGnrAO1Q9Wmoet58nJV5+xmSxIjQyx8ssBGHVLCmP+lBmH6HXndYbXhf5pgHCils tr0zNdLz8Xlv48t3xsujFZ4iglQQgd7rnkYbMUARlshWewJujQXfGO8Zm1GAqJXDTWi2 cUlXSQgKPFcS9T/YkI0DA5zUs/41c7lSvCW0NVBAD1bSyfSHQx004rfE9A7fvj+3mg3Z Ir3w== X-Gm-Message-State: APjAAAU6Vl0WxWTZIbU3btak386LK06PLmdzvaZGAjbRFjxoN5UBcA/i W4q0sjmSy+TQ2kVPHkdWONHzmw== X-Received: by 2002:a63:e948:: with SMTP id q8mr35922012pgj.93.1565752186336; Tue, 13 Aug 2019 20:09:46 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id u1sm106170929pgi.28.2019.08.13.20.09.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Aug 2019 20:09:45 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Niklas Cassel Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: qcs404-evb: Mark WCSS clocks protected Date: Tue, 13 Aug 2019 20:09:42 -0700 Message-Id: <20190814030942.2638-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org '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