From patchwork Sat Oct 22 07:25:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7536 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1105864wrr; Sat, 22 Oct 2022 01:36:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BWPl4Xt60WidfkiQ7V1UZYc8udvnF5WOd4OqbQJbCK7AVIkh40yvAvyjN1sbHWDA7ZsHc X-Received: by 2002:a05:6a00:290f:b0:56b:9226:9aa3 with SMTP id cg15-20020a056a00290f00b0056b92269aa3mr877178pfb.83.1666427782429; Sat, 22 Oct 2022 01:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666427782; cv=none; d=google.com; s=arc-20160816; b=PGdLQ7rSAN5Vx6M7fARhyYuJpof7pKHOmJBT7ZJ0ePSJMMyFqNI7e9gMBpLExBCFv1 nx6KkolB/7i+goVIi3yad/l5PEDHmHYlP+3qfikVDSqXUPmMrTSlLB3AFUsxJVUe/0s1 VbwEMM8INe5YNqA1sH/XSy1dCtvfVPSLCCFBEycyY7JPZ2wOWcWFXL5OhP/WpdxzFpGH UVUmrV77T58hmYhBjgxMzbkiSM875k/Hk+6tcJKQbAJvh+i24WPj5gEMpVs1NpkLEV3/ wRhaevxAynmfPi4FUIZmX993IBqATXhtC60CGiVpXJxdl5y97hw78lCmQKn/8nNyElel jGsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vEpJhqIpwQmFdzqiv6RUZiajBMmVY/iEhd/SkqiY9NU=; b=YjiyzuBVSvVlnzCh89ZWsDp0mRhtzKR+I0zKeUuzFmvYexZoMf+2+CK4qSJFD9n2Mh um7tW1obS4JQUTR0SMrxqJsg8K2yGViOqXPemhM8+KCyVpnw84G2+ziVRmW8dHXcLV16 V8iqdkvjlCPq+UJLKR7IVHU156PGky17eRDB2vC3G8D/Xk/sx53D/rPgr7mLY7OS3RNl nul2mPaWBFS88sHTCMaSL0ZTo90jJf89LJeZTndNpCxVO6Pu6r3SYuaipZHt/oIK4A05 yeJE770noPxT1vSJAL/ZuRuJEv/qyqSowzqZeIZ3kNdGus5Krla4yk8frdcHO8H2Y5wI 1IrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wZZdsA+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p21-20020a63e655000000b00438766f903asi27965685pgj.490.2022.10.22.01.36.08; Sat, 22 Oct 2022 01:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wZZdsA+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233748AbiJVI0C (ORCPT + 99 others); Sat, 22 Oct 2022 04:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233962AbiJVIY0 (ORCPT ); Sat, 22 Oct 2022 04:24:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5216E4000C; Sat, 22 Oct 2022 00:59:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 71980B82E2C; Sat, 22 Oct 2022 07:56:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3525C433C1; Sat, 22 Oct 2022 07:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425411; bh=ihLTuvpV7fDfB9cdHCvDyrLZholIYyBFIIbqcDNjvCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wZZdsA+JwsBt2b4VahehVTDo6DK35zmDtTIJRpn2h1y8o4M2VOgF8UCGzVY+Z3ToN LWXkZmZUwxMBiJl6f3B3jsAOLGsoCZQ/0rCpuBWkZdKaLssbfIPdsCCq60PT2GIMlP xeZnmqcdoyp4jn/3WsdccJFGkWhtZYCF3C/aGHQk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robert Marko , Dmitry Baryshkov , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.19 462/717] clk: qcom: apss-ipq6018: mark apcs_alias0_core_clk as critical Date: Sat, 22 Oct 2022 09:25:41 +0200 Message-Id: <20221022072518.732027452@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747376178538503024?= X-GMAIL-MSGID: =?utf-8?q?1747376178538503024?= From: Robert Marko [ Upstream commit 86e78995c93ee182433f965babfccd48417d4dcf ] While fixing up the driver I noticed that my IPQ8074 board was hanging after CPUFreq switched the frequency during boot, WDT would eventually reset it. So mark apcs_alias0_core_clk as critical since its the clock feeding the CPU cluster and must never be disabled. Fixes: 5e77b4ef1b19 ("clk: qcom: Add ipq6018 apss clock controller") Signed-off-by: Robert Marko Reviewed-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220818220628.339366-3-robimarko@gmail.com Signed-off-by: Sasha Levin --- drivers/clk/qcom/apss-ipq6018.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/clk/qcom/apss-ipq6018.c +++ b/drivers/clk/qcom/apss-ipq6018.c @@ -57,7 +57,7 @@ static struct clk_branch apcs_alias0_cor .parent_hws = (const struct clk_hw *[]){ &apcs_alias0_clk_src.clkr.hw }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT, + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, .ops = &clk_branch2_ops, }, },