Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F4FCC678D5 for ; Tue, 7 Mar 2023 13:30:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229593AbjCGNaU (ORCPT ); Tue, 7 Mar 2023 08:30:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjCGNaR (ORCPT ); Tue, 7 Mar 2023 08:30:17 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF8352F69 for ; Tue, 7 Mar 2023 05:29:39 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id h9so13157152ljq.2 for ; Tue, 07 Mar 2023 05:29:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678195771; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TzlLRqeLIoCqWaeCUWjv2sHg+Xif4EvH9trW59SFbGc=; b=fOUJ3VKR0xgJCRsivOF8z+yqwiKvQTkZJuVKiQm7TEdr7v4AUNTKvl24w5XMb7WMR1 EqkMQ0pp5xiQhvu0HJUAPMi+W1p3taMXijnPONvM4jyl6ImYL2qy7MSRZnQhP9Y5h/7/ LfM4fJwcmCldKdJny6k8s+TzyhvhtVq5I9m6uOoE9uK3HmgsAvPpJmt/t6O1x7sEtTzM ZicykiXRZt4fIsEkxF9EjmVyzuVfvVyoQqxHpk0UVrf7KcfKMCatHIF9VKdjM8YOaBMa 9jahkhWxostt1+pAHG6mKh0WQ1fJWK6MS2Zeb81xlyT+TpZoR4hMgnwm4V6peewZdxqG yzhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195771; 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=TzlLRqeLIoCqWaeCUWjv2sHg+Xif4EvH9trW59SFbGc=; b=cloGyfzlcxuSufKRVx0wR0YSTSxuAu+VWy719cP/NtekFaT9g23m3YJziTjVS6pSBM llzLwnjozqysO7ZeJ8Hqt6SaVp0wAJlPB3K1wGiMes1TXQKoLw7TNUi5WxWzPKL+LpAy x58/hL+wH6ORE6qKK2h7vcPWk9U4Zz3xmKfxqttWrylW9rnDkHk644bMQSA5ub3/tfAQ c3xk4ipWMjUJSfpWgYR1Ttsg3hRZvGY0jwBCGybG8jCAC4+z9eyGHA6WLokM8OcmFyrn Bzm1viE0ekCOEZ2eaWF4WmSqaxiQslQzTx2wbxEQRbiYV8AKQ/VNiIG6J7EDeE/DQXvN q4eQ== X-Gm-Message-State: AO0yUKX/2b/n55WH7PrXMCwACGXfTsRSREUYfO7dkTUodxfGesRAq9UO zNnSohQA7TFTcnPRmbaTJF8qfA== X-Google-Smtp-Source: AK7set+VugX+jpRUPrQINQ/X7Fr4VOXfnfWI8pvcndAFBpJP9FnP7FnobOzCPA4RocPFaHSQJKXOPg== X-Received: by 2002:a2e:96c7:0:b0:295:ac45:f088 with SMTP id d7-20020a2e96c7000000b00295ac45f088mr4271172ljj.44.1678195771320; Tue, 07 Mar 2023 05:29:31 -0800 (PST) Received: from localhost.localdomain (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id f8-20020a2e3808000000b002983bfe65b8sm1674813lja.84.2023.03.07.05.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:29:31 -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 v2] clk: Print an info line before disabling unused clocks Date: Tue, 7 Mar 2023 14:29:28 +0100 Message-Id: <20230307132928.3887737-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Reviewed-by: Marijn Suijten Signed-off-by: Konrad Dybcio --- v1 -> v2: - Don't add 'else' right before a return - Add Marijn's r-b drivers/clk/clk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ae07685c7588..115a80fda3f9 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1406,6 +1406,8 @@ static int __init clk_disable_unused(void) return 0; } + pr_info("clk: Disabling unused clocks\n"); + clk_prepare_lock(); hlist_for_each_entry(core, &clk_root_list, child_node) -- 2.39.2