Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1463780iob; Thu, 5 May 2022 01:39:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtu/YEUlhpZEp74B7630/X9/J/Bj/qiug+9dkiy9+BvrtSoN/Zzm+f4f4JSDTGGV9qFbpM X-Received: by 2002:a05:6402:1450:b0:425:e43f:7ccd with SMTP id d16-20020a056402145000b00425e43f7ccdmr28596589edx.299.1651739985581; Thu, 05 May 2022 01:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651739985; cv=none; d=google.com; s=arc-20160816; b=ZHLLLN6s72GqOzHfriwGjRlI4NyalyNUg+mFGEX1q0jmz1SBwMPsN5tSZkk4shKd4p iLOrlKZ5mb8Ri+pzt3R1FLqBzSt/AdVRpdo3JqIVY5hl3VfyElizceJWhIDb2WlZjLj9 P+XwEmapHk5/9kEs3jQKPjFsPWwWzvZh1xZ1Abl2vrzMtRhuVba4VbTDaDzSZFfPJAwN nM9a76kZRq0VCK4GqweS0jz7F9g28EXHUMH3GZU2YkeHOrLXliW6eSl2QEis+lT8AlgY vEajR3xGXxUvEQOae/n0wD7dCtun49jCktCZNbXrKDc/YP/3gvRN3Lq3tFqP750caN+F h3Bg== 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=PkayX3cpIbN2bP4bEPk/mnWfaMveU0+7qkBXCgv/T9o=; b=WDOZYv26P6io9yhQ1QBN6IwB59+rY3xOXLJBXiWl4ekwEobACg6gBwd/QrcmKmdG2Z Twcm+kSFlEulsQGq2yi6idbaL1YoV2ZjfhXKfA0QA30IbQZkArn8gW+1sGpVt24zTgyx iPLYCxKJr7M6ULQoUXWfgxVlfzxB492ubOg1phNUqLE8dt2fdAnHWblE3vtmoipamiIo DiiM4PhGkXkhLNNe2mMMISN7LsPSNSDO644V84JXHNFNu9G4UoozilLCq3/pMMq2LQXd Dtbsx2Ab8ikUNIsdOAJqkzq/QZ4wPfKY/A6Bk+CDgdZnHGpVUQVLKre6rlh9c09MGGgX pLTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=X8Ma05sM; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a1709067b4800b006f39645649asi1320742ejo.639.2022.05.05.01.39.22; Thu, 05 May 2022 01:39:45 -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=@mailerdienst.de header.s=20200217 header.b=X8Ma05sM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356252AbiEDS2W (ORCPT + 99 others); Wed, 4 May 2022 14:28:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376846AbiEDS2P (ORCPT ); Wed, 4 May 2022 14:28:15 -0400 X-Greylist: delayed 406 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 04 May 2022 10:55:25 PDT Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 457F47665; Wed, 4 May 2022 10:55:23 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 577BB40821; Wed, 4 May 2022 17:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1651686516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=PkayX3cpIbN2bP4bEPk/mnWfaMveU0+7qkBXCgv/T9o=; b=X8Ma05sMwPyKXtQFp92ps0fLub1eRcX0Y+uUSE8mexg54j4iPrYokP+AtQbbzJWhrWfYTH 2yMyGqqEbQGE6hGzq46fPL/EK9AHRUnX5CXVt2elxDimdn4ZP4OjsPiOM0FACB19oO8Wm2 UAQGwaYG+sMSV2H7KMrztQ6W7TBSDDc= Received: from localhost.localdomain (fttx-pool-80.245.79.168.bambit.de [80.245.79.168]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 85F0B3606E1; Wed, 4 May 2022 17:48:35 +0000 (UTC) From: Frank Wunderlich To: linux-pm@vger.kernel.org Cc: Frank Wunderlich , Greg Kroah-Hartman , "Rafael J. Wysocki" , Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-kernel@vger.kernel.org Subject: [RFC v1] opp: add config option for debug Date: Wed, 4 May 2022 19:48:23 +0200 Message-Id: <20220504174823.156709-1-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 65529973-93c8-4f73-bd71-4fb0c003dd48 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 From: Frank Wunderlich Currently OPP debug is enabled by DEBUG_DRIVER option. This is generic driver debug and opp floods serial console. This is annoying if opp is not needed so give it an additional config-key. Signed-off-by: Frank Wunderlich --- drivers/base/Kconfig | 1 + drivers/opp/Kconfig | 7 +++++++ drivers/opp/Makefile | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig index 6f04b831a5c0..8ae826c95d5f 100644 --- a/drivers/base/Kconfig +++ b/drivers/base/Kconfig @@ -130,6 +130,7 @@ config DEV_COREDUMP config DEBUG_DRIVER bool "Driver Core verbose debug messages" depends on DEBUG_KERNEL + imply DEBUG_OPP help Say Y here if you want the Driver core to produce a bunch of debug messages to the system log. Select this if you are having a diff --git a/drivers/opp/Kconfig b/drivers/opp/Kconfig index e8ce47b32735..6a2d2c6c1143 100644 --- a/drivers/opp/Kconfig +++ b/drivers/opp/Kconfig @@ -12,3 +12,10 @@ config PM_OPP representing individual voltage domains and provides SOC implementations a ready to use framework to manage OPPs. For more information, read + +menu "Operating Performance Points (OPP)" +config DEBUG_OPP + bool "Debug Operating Performance Points" + help + enable opp debugging +endmenu diff --git a/drivers/opp/Makefile b/drivers/opp/Makefile index f65ed5985bb4..2589915eef95 100644 --- a/drivers/opp/Makefile +++ b/drivers/opp/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG +ccflags-$(CONFIG_DEBUG_OPP) := -DDEBUG obj-y += core.o cpu.o obj-$(CONFIG_OF) += of.o obj-$(CONFIG_DEBUG_FS) += debugfs.o -- 2.25.1