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: 10669667 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DB7FB13BF for ; Tue, 6 Nov 2018 05:46:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B511129998 for ; Tue, 6 Nov 2018 05:46:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F9AC29E97; Tue, 6 Nov 2018 05:46:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 328D429998 for ; Tue, 6 Nov 2018 05:46:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729513AbeKFPKE (ORCPT ); Tue, 6 Nov 2018 10:10:04 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:33231 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729326AbeKFPKE (ORCPT ); Tue, 6 Nov 2018 10:10:04 -0500 Received: by mail-pg1-f193.google.com with SMTP id q5-v6so5316575pgv.0 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=dYKsL2kPZHOnRI/o6SU0kk3UpKOCKYrKq2PNuKxIp58Pov7j6pfoH+aRfFLvpxm4RJ Lt6V/hMBBy0nTRSga/0wmHnpHkPIYJ9W69nc5Rqw3EQ8FmeKGU+FHAFcDLTYd0Gea92D exZpqAoCaPid7SpTngezDQXatxHTxOq6YEsKaXExEoxGj4VsJjFFXtvTUhD/hbAlVdac lKwRc6WdYV0FNyIl1O/I7Rd/hpnkztmo626XN7mh+Kz9uWZbiCfGnHVe7QtI3r20gQ2R kQ2cEd3SsMviuHT9DPaqJpeP1pewW6ruPp6IcbOVch1ZSU2C8nincmacJ+7QeENZE46f ULTA== X-Gm-Message-State: AGRZ1gKCGMaw7TltmzmZukh3u+xc957VJLgpJ4qPUU1KEQ7xYZo+JJGe ICyIOKcmfp8QoHHBiuIXmhxKRA== X-Google-Smtp-Source: AJdET5dL1Aqqcw0y/EeNif63HTNXec1E1Qwid5AhYK5Q6122pjqW+pAK3EMWCTq0ry+uh4U5fg9pQQ== 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: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Andy Gross --- 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(+) 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>;