From patchwork Tue Nov 6 05:50:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 150248 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3488365ljp; Mon, 5 Nov 2018 21:46:36 -0800 (PST) X-Google-Smtp-Source: AJdET5fc7NnEdiHUoTuhDyEHxr+XPXT/zXyaW/zWbB6WnRJfYxc+j6eQ7cTRwbnaI7xT3e10SPWG X-Received: by 2002:a17:902:8b8a:: with SMTP id ay10-v6mr24922085plb.130.1541483195944; Mon, 05 Nov 2018 21:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541483195; cv=none; d=google.com; s=arc-20160816; b=G7c+lMRPGcGuFkS+vdzIjiM5+gs83rSdJJeP4W4urHQdylr1PZ6MWDkjtmnSIgpZqk /duXQzRYX9rHxY2agXYPWsvThpTWtOIQt9zjVSUwM6KqnADAgHpoJV5FwqfSqAquS835 fJJhmno06aIcD2QxbGurtlj+kj2CoeOAp2Ycn0cgxc3zjn8zwXLmrdgQ1XPOHIyd3pNn 1PhOvNyxPeHBeLZBYn0VoNLFWdXKhLOYRwkazu4EoUwbvpVXu6ZS5wsHhZBTMmvFQC+i mRt5hoq9odaHyfE8aRsb6inX1z/yityY0on5InGyfEYliK4QyphEoNPJfcbYMLj+P4ed 9iKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=+ZeF+kAyK15pjP+Yr+/pWxXTXoG5eNAVYz+WyoJvFGk=; b=zX3DaKPo87jUcZSsu2zbkI6DwOeVSFFxx/wbS4HWK3UvDdz/gBAUEFDL3TrxyfQQhn zPhSXqZafZC1ShTzOPFpZMRzCfvXDEirkIaIonjBN0S3LanxUcTt7GVz46LxXqHNNWRF dI18+QGsoG9FThybAicxpMIkCGt4B9yrR+moCxWf+WxhnU+1N2RSlSMN17ODxo7lE2jX znYxuVehdFI3wuQWWVE5cL52cwUaPOH8bQRrQ09P83ueu6BGGQKijoTL0ROiO11a9GKW VewK/irZLgivTIqjfFvpFW7XvYENFJa1LuYzbS2xcN+nED+tpKk+L0h2YYgJyGo4hIhr JmHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iGHG9927; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 u8-v6si36821299pgl.59.2018.11.05.21.46.35; Mon, 05 Nov 2018 21:46:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=iGHG9927; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1729480AbeKFPKE (ORCPT + 6 others); Tue, 6 Nov 2018 10:10:04 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35046 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729319AbeKFPKE (ORCPT ); Tue, 6 Nov 2018 10:10:04 -0500 Received: by mail-pg1-f193.google.com with SMTP id 32-v6so5318832pgu.2 for ; Mon, 05 Nov 2018 21:46:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+ZeF+kAyK15pjP+Yr+/pWxXTXoG5eNAVYz+WyoJvFGk=; b=iGHG9927YgmW+7xGwZbKb/g1NQiwEzQ5JD/u4JzLGlAK0moVMX/ngtxZaqeMcTL4Wh ryGDj2xdIaEQ2EsmHyRUBBmHcxJMy8WKep9N+N/SANCJ+Az31SIzbI2BA/eAreoUCR/0 l/d55jENqV8lGgYfmN6uwzHiBWglQwFfaTKW4= 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:in-reply-to :references; bh=+ZeF+kAyK15pjP+Yr+/pWxXTXoG5eNAVYz+WyoJvFGk=; b=EkvnyD3OCM6BFUDvpi8KK/jYiXjxKRiZPBABCyX7Bxpv1hHiCABfyKqQcx41ASEaFN iCp1ghlcyFZfIlE3r4kONsDYEztkddn3Hn3HN5Cy7gPmI2a30HRdWbbzd0aLV/p2/PG0 2FHVONhdfB2v95pYem467uHWIjtNdKEH1MT7KawTCQY6tYYUpNq/8O4aOIJfD0jq8OBL pGrUZz5JgyKiBDa5VrX8oX2EX3ncF+SWSFhD5+/wCwoqn5saQebY09wJMzacFp3yI6Ts MXCHsXgblcsc7xl5oUlYgs0dYjsu/aJpX6w+E9y55/s+X1SA+WxVVS2ICMx+AsomIwsq Rx1w== X-Gm-Message-State: AGRZ1gL3tR2c7fXkoXsIAwcaySnqToV7x8yi0K93VYN5wT67fx+Sxgdz 2mrbXSyHeSobpOk55wNUzegyxQ== X-Received: by 2002:a63:3287:: with SMTP id y129mr22829950pgy.337.1541483193746; Mon, 05 Nov 2018 21:46:33 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id d196-v6sm7855817pfd.58.2018.11.05.21.46.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 21:46:33 -0800 (PST) From: Bjorn Andersson To: Andy Gross , David Brown , Rob Herring , Mark Rutland , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: sdm845-mtp: Mark protected gcc clocks Date: Mon, 5 Nov 2018 21:50:13 -0800 Message-Id: <20181106055013.11271-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181105194011.43770-1-swboyd@chromium.org> References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org As of v4.20-rc1 probing the GCC driver on a SDM845 device with the standard security implementation causes an access violation and an immediate system restart. Use the protected-clocks property to mark the offending clocks protected for the MTP, in order to allow it to boot. Cc: Stephen Boyd Signed-off-by: Bjorn Andersson --- This depends on the acceptance of https://lore.kernel.org/lkml/20181105194011.43770-1-swboyd@chromium.org/ arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.18.0 Acked-by: Andy Gross diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index d667eee4e6d0..b3def0358177 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -343,6 +343,12 @@ }; }; +&gcc { + protected-clocks = , + , + ; +}; + &i2c10 { status = "okay"; clock-frequency = <400000>;