From patchwork Mon Mar 6 13:41:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 64667 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1850269wrd; Mon, 6 Mar 2023 05:49:36 -0800 (PST) X-Google-Smtp-Source: AK7set+mlPf5/f+eUYBaVxdxTvbZzzqyFTEi/p9gFUVTZILSLlMoL1lQJZOG+MdsGDAEYxgBCAGn X-Received: by 2002:a17:902:d353:b0:19e:2e6b:142e with SMTP id l19-20020a170902d35300b0019e2e6b142emr11002842plk.63.1678110576019; Mon, 06 Mar 2023 05:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678110576; cv=none; d=google.com; s=arc-20160816; b=Cv5RDEyEQdbKp+lu0AYOO/Ahbl9G6Bieyxm4jtJxKaAtDmop178obR1rSOHODRJtZ9 jTXy0HZf5nJL0QYFVtIdOQSn4vlCoPR2H5gCrYoHjTz4gdPEo251bHxl7RERmgRGYNyt l4PD08GDtZ/WHpV/lGlyK9238A5ChU6ou/721QP5mPRSLSIW9gGnJ8x+WjanaMGe5cp9 kN6cuFp8ocW8hO6JdopkZD5yydP20cCb0jEAf6ndxCe4xQUCx9XXVgEBareOrKXQH5Bj mj2wI0dK/+dsDaCaBLlyMZ5PWLW8k4ae5b0XQE5cn77lB/s271+/EujMIrMYVoF4HKB9 1BxQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=demFJEUEpJvdhO0WfS6d2haBUZGb3Sc0QF/0m+krW4o=; b=GRb4rGfgE2fd4KNeZvO1bhm5u5SIY53cxXxzL2x0Wrv9bMphEOJuFj9E8vOVidsnJQ oahMKziGuI46oEpQUK5SeJ+mMObuqQmdfJg64KLcYogZ6Oel+5jR/wRPMWtca8HopP67 WcCqbdbXcoh4O4m1ORXQsKISTik0Sbb2xmIzS8j01RnKeweqAaAtb9Zg2dIf0paH6YKS pH91cCL/6bd/OA711faND22+7b7jBsBn5dolvN40EKfUmL4sQFhVE/Ydau90vU6hMntI POgcdZzuzAw9/fd4RRtJ/f0DeTqx4c6VP5NoPvlT1yWe3ZFZIf4RwOLxS4QBD/ZKmw4z aZHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SqlmKiqV; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kd11-20020a17090313cb00b0019a9ba66516si8687639plb.430.2023.03.06.05.49.23; Mon, 06 Mar 2023 05:49:36 -0800 (PST) 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=@linaro.org header.s=google header.b=SqlmKiqV; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbjCFNlT (ORCPT + 99 others); Mon, 6 Mar 2023 08:41:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbjCFNlS (ORCPT ); Mon, 6 Mar 2023 08:41:18 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A41A2F7A9 for ; Mon, 6 Mar 2023 05:41:12 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id s22so12742424lfi.9 for ; Mon, 06 Mar 2023 05:41:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678110071; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=demFJEUEpJvdhO0WfS6d2haBUZGb3Sc0QF/0m+krW4o=; b=SqlmKiqV1vvIob8AbIAmc6V0U38ABCSpa4IH6mKnNa4t68QesWeBXA6TjMGMTwLooI ui/ym4oTLhGUKS6elVsQxoAMGuRbRAOGWIW+ZN5ermjOq9+Fgp8RHFJMfphta1fTLXQL QuouQkkMhWdASN4Ub7qYR0j9sio0ezffv4YWGXlgpzquCvUoUBiIyBont+lzUrEYH2yf Bn53vF3yPhVS/nCR8zEKJ85ap0XK56WdgtnNXtSBAClf4nfrJZ78IKOGIdbEI5rtjPdy g6hz1BDA+VV7Dvkx7+x6YMcWRCUfodwSzrBlQ057vpwB/l7xM28lfAdKWxi1HGuo4yPu mH5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678110071; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=demFJEUEpJvdhO0WfS6d2haBUZGb3Sc0QF/0m+krW4o=; b=rmW3mwMbLou01IORbxDyZ5UCsD2BM/28f1Fwruu9zksOjUGx7opGbDCTMTz+SvgLF+ lES3v8BQElyVbbC/ONncfDNlGqXsNVcCBq6jtFEE+5Fsg9yNcWn3Tox+szsoRYGJzrmz WY1KNcV3wSECUhaHKGXLUGW6jx8MS628CbHmGv1cNFhPvc4rgL/Ri/aDlu2nmS8Z+LKU 0H6AQYblqI5nwDDxrj25SCYqqk0VeR2OzYsDN4lOlcZTHNbmZAXMeJSVsO2YuZXyTi2J Fgs2UtTEz8I8Lqz0oEKqd0s8jF7+25FVz+/r4RtU0Z8Jdjkzwrxb5ZgPlqhl9j/BlmCh SAyw== X-Gm-Message-State: AO0yUKX0/lEQAuKjiypjrh5Bvw9nvgTT8viRAHHkLXwhQ85n30ANLnrZ NraRhWmsPg3maeB3UB3blzRoqJYYcza24kPT9/s= X-Received: by 2002:ac2:522f:0:b0:4d8:58a7:6d90 with SMTP id i15-20020ac2522f000000b004d858a76d90mr2766511lfl.42.1678110070773; Mon, 06 Mar 2023 05:41:10 -0800 (PST) Received: from localhost.localdomain (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id d11-20020ac244cb000000b004e792045b3dsm1574505lfm.106.2023.03.06.05.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 05:41:10 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: Print an info line before disabling unused clocks Date: Mon, 6 Mar 2023 14:41:08 +0100 Message-Id: <20230306134108.3099396-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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?1759626475078673570?= X-GMAIL-MSGID: =?utf-8?q?1759626475078673570?= Currently, the regulator framework informs us before calling into their unused cleanup paths, which eases at least some debugging. The same could be beneficial for clocks, so that random shutdowns shortly after most initcalls are done can be less of a guess. Add a pr_info before disabling unused clocks to do so. Signed-off-by: Konrad Dybcio --- drivers/clk/clk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ae07685c7588..827a51fe6653 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1404,7 +1404,8 @@ static int __init clk_disable_unused(void) if (clk_ignore_unused) { pr_warn("clk: Not disabling unused clocks\n"); return 0; - } + } else + pr_info("clk: Disabling unused clocks\n"); clk_prepare_lock();