Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1238572imu; Thu, 13 Dec 2018 11:37:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ug/aUfblUhEwY0TFs+se0HHUHslKZm0vWKNnpVzGF4sVg7Irqg2mkOnvMbVlBfN4lq69es X-Received: by 2002:a62:c613:: with SMTP id m19mr56768pfg.207.1544729855807; Thu, 13 Dec 2018 11:37:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544729855; cv=none; d=google.com; s=arc-20160816; b=qrslg8TpOZFa/xsfu0198y6Ra9WbZVJyNdqDPNkoDgsHyvq3pXfNfhojbSgk5NjqKp CeddMX2L/IxXGW57ZDcjDKidfIdqAebLnrO6yr0MvhZLy/jzXYZt6OxYyV+X6Gg/KFEx UUKfJr14+EN0hAcmR/nB8FCpEptfF2ps/uGhTBbR8ei/UFQWRQ7Q2rJHN1WCCQngN11S fAa56JSi7UhctT7+14iVrt6i+E9CEkVIk4+9kLlAJGNFMWKg/l2xcTXl8G/7sHCq3vXA bL/uZSZA6PnuAdk8gicFUkhWWc2GiyBON2s5a/dOd4usVyxsxqXgclbPWKU5LtxOX80H NMyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:user-agent:from:message-id :references:to:subject:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=YB8M6shLU7Jw212m2ukcmuHNu5eD32XpM5pCPjbj3eU=; b=Ve2wYqDDp7cJkKFGBfzVItTO3ImhjDr1QNp8qWwswAD3hM/xCrp2e+oTO+BGv59hyf LCaz+knfJZFhshtYCSHw4hxEtXMuqA5EWAZb/Z3A4R72rDkIfpB8G4vCcNyTfVTBM1uo CB6YxQMvPyEONKb/GMDKXzzNAcZherJuyx5dXZ/Ksmc+HcTlLkNXBXzCT6Xhqx7jF+Yd yM453FoqPi+Qd60WgiR2uEsuSqb3fWTyWOxyddp85JgJJ13yOChuxNkuM9vJj++7cVoP dAcsQjlmozWFFoOYDN4Ju3gfDrV69w6oHNlPSC8QDeZMvnCeCl0mFphmAMFk9T7UqP5d kVug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LCzIXalZ; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si2070355pgp.504.2018.12.13.11.37.19; Thu, 13 Dec 2018 11:37:35 -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=LCzIXalZ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727951AbeLMTgW (ORCPT + 99 others); Thu, 13 Dec 2018 14:36:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:56440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbeLMTgW (ORCPT ); Thu, 13 Dec 2018 14:36:22 -0500 Received: from localhost (unknown [104.132.0.74]) (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 81F8D2086D; Thu, 13 Dec 2018 19:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544729781; bh=5Lk5CdTHmRY4t+blL2zeIHiMM+B3ZNO9k98hvL6UXHg=; h=In-Reply-To:Subject:To:References:From:Cc:Date:From; b=LCzIXalZPXtfVERJAzxnCfKY65QjxaYZ+WlibU+E5TZAHuoFYtF/OyPeaiThd9fFc plMaZWx6ZmwgeOeYc1qp+nMvt/ewHv96ZQNRHQJFzOD1yu+MYWr3/g8ihMlBICpFxL 4/AYZ1KttPv98u8FioHAOGCNatP/nIqLJfHhU+i4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1544720370-11598-1-git-send-email-jhugo@codeaurora.org> Subject: Re: [PATCH] clk: qcom: Leave mmss noc on for 8998 To: Jeffrey Hugo , andy.gross@linaro.org, david.brown@linaro.org, mturquette@baylibre.com References: <1544720370-11598-1-git-send-email-jhugo@codeaurora.org> Message-ID: <154472978059.19322.5895645487468845661@swboyd.mtv.corp.google.com> From: Stephen Boyd User-Agent: alot/0.8 Cc: bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, marc.w.gonzalez@free.fr, Jeffrey Hugo Date: Thu, 13 Dec 2018 11:36:20 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jeffrey Hugo (2018-12-13 08:59:30) > 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. >=20 > Signed-off-by: Jeffrey Hugo > --- > drivers/clk/qcom/gcc-msm8998.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm899= 8.c > index 4b75a09..b371308 100644 > --- a/drivers/clk/qcom/gcc-msm8998.c > +++ b/drivers/clk/qcom/gcc-msm8998.c > @@ -2014,6 +2014,7 @@ enum { > .hw.init =3D &(struct clk_init_data){ > .name =3D "gcc_mmss_noc_cfg_ahb_clk", > .ops =3D &clk_branch2_ops, > + .flags =3D CLK_IGNORE_UNUSED, It should be marked as CLK_IS_CRITICAL and a comment should be added to the code indicating why it's critical.