Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2763188imj; Mon, 11 Feb 2019 08:07:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IbbFo/dwIog5RUXoFI/aJr79PWQ3vJSKTL3JIEyRwkxWC9TSpVXGaNW/ISLnDMzIugkonkA X-Received: by 2002:a17:902:b118:: with SMTP id q24mr38526830plr.209.1549901227703; Mon, 11 Feb 2019 08:07:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901227; cv=none; d=google.com; s=arc-20160816; b=XZFK8/0LIeSsTpr/4SQFK51u9vndLoWEa9qAzCEwEekw/+kyEJtT3NKxed4uTIioXK 0+7OYTcPcp0LtnTDCcgxbs2hUg+Lm81WfvVTNooq5ydqH8cDzgRhmtqILnwOU39D7TOF 6bBnZJkmsH8K7Wqqhvv5vau93RCEBhZjYECYVfWyucyK+iYgKDF/dBb/3+7PaB+Cg6KP 6UxRhLSUsMmizn3NuQito5fdKqwJ77gN5ayyc0xvK7xC6TWV2dv0XGPEHbhsdTRdXR80 YoFmKIBwYRaWmFGlpNJ58T2DUXJJH0Aop6hUDyL7wan8oVgSlPnC6Zmhq41pjpB3KHSm Ktig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fZlGppiW5Scz/v6FANmt5wX3aX9kzFFkYfV5qwZPScg=; b=e6mTYkdYwtjIIcmH8/LPrx+zINyOrYR29MPKxr3pPCEr+SBcLOeuueJ70dzMx6PHub /eQh2UiDd68NZTg5tO/hf2KgwzLsbBihJVrzPg+c9DZ+wJ9Ixke9EOoPM1AYkVmbshnw W3O1N1jAq1PHM/lFnEHQtYOLvKu9woMAfXvijl3wosEr64fexSfc7j5OB2Uf5vUXyzFx gAkR9qaEzcPOlkhWr6aJkHVAbEukYcW8tsttVZxRWG1jRoJns5qwBjTT+y6GCCP3ErPU Puqvdkq18P2dS0ijLcWCEmgnxtgbqDRrmaL1nj/JGhSjuTHM5fb9oGBFLlgXNfnEwpiv Ph+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WtMluyrB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e17si9630271pgv.452.2019.02.11.08.06.49; Mon, 11 Feb 2019 08:07:07 -0800 (PST) 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=@kernel.org header.s=default header.b=WtMluyrB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728967AbfBKQEW (ORCPT + 99 others); Mon, 11 Feb 2019 11:04:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:34644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728480AbfBKO2l (ORCPT ); Mon, 11 Feb 2019 09:28:41 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 C4D6F20838; Mon, 11 Feb 2019 14:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895321; bh=ZfrjwEx0Pf/2cY1GIoN0+cJKPY1I3bkE/JCIaWwSo5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WtMluyrBQpCmL76pivmW1kcTbTKNMuC8FzUYbbacvN1NCgR9V0xDp9NfF95R9XStY jp6wPCxf4oLE7S703DVXwb6V0g+FjoH3I887oqR8VFukHiU+BC5gM1DtuiaF63kFJY KXuzfFR4j4t5a4cZHSM3OMHooRXSkQh+wgsLLxOw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jeffrey Hugo , Stephen Boyd , Sasha Levin Subject: [PATCH 4.20 166/352] clk: qcom: Leave mmss noc on for 8998 Date: Mon, 11 Feb 2019 15:16:33 +0100 Message-Id: <20190211141857.557760461@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 12eced09cd301aa7b1868a67c50a651c2aacd363 ] Similar to other qcom targets, gcc_mmss_noc_cfg_ahb_clk should not be disabled. Any mmss access depends on this clock, and its been observed that enabling mmssnoc_axi_rpm_clk with rpmcc results in an implicit access to mmss and will crash the system if gcc_mmss_noc_cfg_ahb_clk is disabled. Signed-off-by: Jeffrey Hugo Fixes: 4807c71cc688 (arm64: dts: Add msm8998 SoC and MTP board support) Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-msm8998.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c index 9f0ae403d5f5..cb714c3e2924 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -2042,6 +2042,12 @@ static struct clk_branch gcc_mmss_noc_cfg_ahb_clk = { .hw.init = &(struct clk_init_data){ .name = "gcc_mmss_noc_cfg_ahb_clk", .ops = &clk_branch2_ops, + /* + * Any access to mmss depends on this clock. + * Gating this clock has been shown to crash the system + * when mmssnoc_axi_rpm_clk is inited in rpmcc. + */ + .flags = CLK_IS_CRITICAL, }, }, }; -- 2.19.1