From patchwork Mon Oct 24 11:30:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9280 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp462980wru; Mon, 24 Oct 2022 06:46:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6cWSmjKsqAnO2V3a54cfL+xl5bkAZnjg6s8h3gG90QnW4Q3soqJpqp7P0ca7Ih7q4gsQnR X-Received: by 2002:a17:907:3ea9:b0:78d:fdf0:88fe with SMTP id hs41-20020a1709073ea900b0078dfdf088femr28732893ejc.667.1666619212538; Mon, 24 Oct 2022 06:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666619212; cv=none; d=google.com; s=arc-20160816; b=N2zAlLgbi7zDDJvgdtD3riLoM9Kvqm62PSVToAVY4nprDoBf5KDrQYUGEVhtSme9/u B5iDa0W1+WsHGYHlW4eRbW2e3AcGDYTN4j8vR5PWhx0zqxZwD297hANHGwJ0EvKBzgGQ TLpX/l/16o8tIKjPv0UphFzNmhA+2EGYzjm29Nfvp9iw//zNxndixApXRgDAfr6IW/kv GnEQl3eBtzQz/DIre8EFFZ/PLnBIfeKbO4RHg5wDf04GUoEfRNUAgrX4cOPAxa8G3noa dLxg2DzlnERwMRpGuxsUNVrloFxp7D0VZKE+goArMCzu2WedAfFQqzcVdOqYgM5fYhWC rDLA== 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=DXREJnS9b0iA4DW6XK2JRl7Ui6nrh1ekHBa2i9LFI2UUxoQelx2w+icrbRezUJ9TpJ ZTQiIEoeuvijhPvWc38rfIYYflj5NPTmaolqjFzOcc1iREqSs2nbZ73cVRLacPVW2R53 Cz0JPlklPkb9gxdeJLW9wPHh1La6SE4EY0Zyv626EuebhpPlUPrQbsc9tbj3Te39ZKEM lQSdePQ024BpdnO+aR4ekDTLNRnJtN4puuL6oiujBgv+Cjke9jAlhH5rwfXgmpfuJNzu LPQne0RszC9GOzGrkd+mlXX+ROvY2Dsoe0+mLOVcrZnl3ymZB9mmQcWQjvKCkJuXhUjg Rctg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CRO71PL0; 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 ht9-20020a170907608900b0077fb99b8cfcsi19454815ejc.301.2022.10.24.06.46.26; Mon, 24 Oct 2022 06:46:52 -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=CRO71PL0; 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 S236021AbiJXNpU (ORCPT + 99 others); Mon, 24 Oct 2022 09:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237015AbiJXNlz (ORCPT ); Mon, 24 Oct 2022 09:41:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99C1B5FA6; Mon, 24 Oct 2022 05:39:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 16B7361291; Mon, 24 Oct 2022 12:26:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 280E6C433C1; Mon, 24 Oct 2022 12:26:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614397; bh=ihLTuvpV7fDfB9cdHCvDyrLZholIYyBFIIbqcDNjvCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CRO71PL05awaHyj+pmG5pDZvybd+3gVPLEhl1c7XmmPgxf7O4r+ug2pRrLgNWv57V HGDS36hNZxY2+Q0idK82mOAZo0/ZItotwRUZCkaQ/NNzp6So1eqMrwcYIl+RYbTovV 7pSIB9AT/20YDEOUGqfZdngRFjAVH7JNCgQYE+i4= 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.10 245/390] clk: qcom: apss-ipq6018: mark apcs_alias0_core_clk as critical Date: Mon, 24 Oct 2022 13:30:42 +0200 Message-Id: <20221024113033.273192147@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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?1747576907641228819?= X-GMAIL-MSGID: =?utf-8?q?1747576907641228819?= 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, }, },