Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1564413iol; Fri, 10 Jun 2022 09:58:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa6LyQROQM4iEjEninZqiYZT2OePYc5yDgD4EeyasRWnjoaUW7Kds/MsMtr4vx0EBajIg9 X-Received: by 2002:a17:907:62a8:b0:6fe:8b21:4a0d with SMTP id nd40-20020a17090762a800b006fe8b214a0dmr40669308ejc.84.1654880322816; Fri, 10 Jun 2022 09:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654880322; cv=none; d=google.com; s=arc-20160816; b=ERZQT+sjrjs5ZCrHWyDjzAUP9c0SPuvlaYUnYwgjBTAMCnQ0laNu6Dpd4hhcJJ1MDY DGX7DpZT+7rOp2dy4qZ+thvhMF/ZebvkwMwYu/yoBjK2dWvzOjJTrsXSa6wtEJNxSDJg mXBRGf8TQjtzPthn72ZGf6b8Ck+eZ7g0SYgHTXAKLci9nPo1iFiQokPi9tYDA9+syW9N UCwca9o+wuBgIlx9Eyv5nnFx5jK4dbktv8kwB5c4hWRyodmP9rCTuAtsDKMyA/PYkOXV PcIem7up/4WIKO8Vwi0tZ9lpsz9R5BK6s7dcK+EdHmxKad0QHQ5ZqETZuzCsH4LrRAy0 3f3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5SUcfWKRJ54+J6bkBWHS8FbP19WCLRxIKvnItR2yHi8=; b=noHKvAi1k4a1rqHajYBZkdV9WjyxIEDamnnBRDH0d67kA5P5UwPh0Emm1w4lbnQEzN FRayabthoBFup3+xL208u8L79JkOVG0rNNvuoGTvQVyadHIc7t6QC+xuGOCQQXXCrQ7N qxlZF2QAQIfYrFIgfAlyfsRuC44Qhbq41VnNddkRgQiQsLVZ7045Zjrxw3FAypNy1z3h 9+fh0tA4AF3UOx3azB8DkJgEFskKuP3NfB3/vhQbhLGj9YzDLCAREeHwXrs0CIVcUVOs vi7i3Djbzu+V8ynsZUSUhMpPWvp6eQdTtB5w48ijsuFYz/o+lqCWi4Cb7MPnna1eQHXc JWLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OIoKsXBR; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a05640205ce00b0042dde271113si24014904edx.519.2022.06.10.09.58.14; Fri, 10 Jun 2022 09:58:42 -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=@intel.com header.s=Intel header.b=OIoKsXBR; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346296AbiFJQgy (ORCPT + 99 others); Fri, 10 Jun 2022 12:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245530AbiFJQgv (ORCPT ); Fri, 10 Jun 2022 12:36:51 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E30B656FB1 for ; Fri, 10 Jun 2022 09:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654879007; x=1686415007; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=qhb3ue3jkx0OzNd+SAkFQAItwZgBg+sANmqWbb2tG7A=; b=OIoKsXBRkqhODBGZURW1VSU+WWYjvGdVy2KjM/UwwWW2KJKjAwhBo7qm FJtVEEt1ofIklMR9DwsrGdUpHf9JbrXxk9FsHoPcH5Zrle28HtR50kid9 SmIbiqLiq0T3ocs6aehIFUUV4lk5Q2Zdkg2YL4ffuGIrcfCGIdq6Ga6Jv 4jxEHqRXiFMGNVXbMRfvSq8KGmmApMt+wUbm8CVdhI45fFxKOp9Grwhta XePzalWM4PgQ9hLZhAwpn12DNnHja/c6ll0B0gLwjXwWzA10xflJ2ZatU xrIKdYBvjj4MhJvknfE78nvTW83bSjiapJ+RcpD6cecqZN2bUmg/oFSbF w==; X-IronPort-AV: E=McAfee;i="6400,9594,10374"; a="341737251" X-IronPort-AV: E=Sophos;i="5.91,290,1647327600"; d="scan'208";a="341737251" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2022 09:36:47 -0700 X-IronPort-AV: E=Sophos;i="5.91,290,1647327600"; d="scan'208";a="725032963" Received: from pljackso-mobl.amr.corp.intel.com (HELO [10.213.190.122]) ([10.213.190.122]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2022 09:36:46 -0700 Message-ID: Date: Fri, 10 Jun 2022 10:06:58 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.9.1 Subject: Re: [PATCH 1/2] soundwire: intel: uniquify debug message Content-Language: en-US To: Greg KH , Bard Liao Cc: alsa-devel@alsa-project.org, vkoul@kernel.org, vinod.koul@linaro.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, srinivas.kandagatla@linaro.org, sanyog.r.kale@intel.com, bard.liao@intel.com References: <20220610023537.27223-1-yung-chuan.liao@linux.intel.com> <20220610023537.27223-2-yung-chuan.liao@linux.intel.com> From: Pierre-Louis Bossart In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 6/10/22 00:25, Greg KH wrote: > On Fri, Jun 10, 2022 at 10:35:36AM +0800, Bard Liao wrote: >> From: Pierre-Louis Bossart >> >> The same debug message is replicated multiple time, add __func__ to >> figure out what link is ignored. >> >> Signed-off-by: Pierre-Louis Bossart >> Reviewed-by: Ranjani Sridharan >> Reviewed-by: Péter Ujfalusi >> Signed-off-by: Bard Liao >> --- >> drivers/soundwire/intel.c | 28 ++++++++++++++-------------- >> 1 file changed, 14 insertions(+), 14 deletions(-) >> >> diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c >> index 505c5ef061e3..808e2f320052 100644 >> --- a/drivers/soundwire/intel.c >> +++ b/drivers/soundwire/intel.c >> @@ -1328,8 +1328,8 @@ int intel_link_startup(struct auxiliary_device *auxdev) >> >> if (bus->prop.hw_disabled) { >> dev_info(dev, >> - "SoundWire master %d is disabled, ignoring\n", >> - sdw->instance); >> + "%s: SoundWire master %d is disabled, ignoring\n", >> + __func__, sdw->instance); > > This is not a debug message, please make it such if you want to have > __func__ And even then, it's not needed as you can get that from the > kernel automatically. Sorry, I don't understand the feedback at all. This message was added precisely to figure out why the expected programming sequence was not followed, only to discover that we have devices with spurious PCI wakes handled below. Without this added difference with __func__, we wouldn't know if the issue happened during the expected/regular programming sequence or not. > >> return 0; >> } >> >> @@ -1489,8 +1489,8 @@ int intel_link_process_wakeen_event(struct auxiliary_device *auxdev) >> bus = &sdw->cdns.bus; >> >> if (bus->prop.hw_disabled || !sdw->startup_done) { >> - dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n", >> - bus->link_id); >> + dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n", >> + __func__, bus->link_id); >> return 0; >> } >> >> @@ -1549,8 +1549,8 @@ static int __maybe_unused intel_pm_prepare(struct device *dev) >> int ret; >> >> if (bus->prop.hw_disabled || !sdw->startup_done) { >> - dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n", >> - bus->link_id); >> + dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n", >> + __func__, bus->link_id); > > Not needed, it is provided automatically if you ask the kernel for this. > Same for all other instances in this patch. provided how? Your comment is a bit cryptic here.