Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1104725ybh; Sat, 3 Aug 2019 18:05:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1Qysl6xM+ELM5WQ8VIMXuGUyqO3iNwbMcKQo44uh1zPaqK8queVPeKcI+/dqsMF7DlfGX X-Received: by 2002:a17:90a:8c92:: with SMTP id b18mr11238872pjo.97.1564880754756; Sat, 03 Aug 2019 18:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564880754; cv=none; d=google.com; s=arc-20160816; b=fLzMbNcpb5ozhFBQ/afMmj+Fq94lfm4MbQgBx/sfVfw2OYIP0ssMcHFQ1PCRTqshFM 0w8ZhMvc7RMrDRYQXYbnd7L1oIdG1ObdcPmNnn6LwHMVf13ZrTanROCQrHQS1wrqwPUv oDwFjkZdAUrR/tzMtKaWBfvCZe6xcasrhx/6GtCgBhfBLzHlgG/fFJnMKSPNFIcLbyf5 OqLovmkZ3PNVMs6Kr2ymUBeGgBcyykyibjivl9Ph8Bpygm0ffiVz6B50QNA2jO4SpPUK lPqVgKpwdRcSl0hNILbbH6aTWixGNxMAC4zp9sWGbmxEc719JOWP+pNuMhwcD/ynKXYz Vn2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6iNIq8GbW/niMrxVNAriJbr2PReTPAvpt2c86arpRBk=; b=T+jxOmAu1L3Yjz7sCLXKX+AOpddk22jkPiekXsrQlga7ShAicdV5v51+695gLL9xdD 6TPBRyatkT6MV7mf0emDbOQ5xfC4ifVLHKp2I0tHgi2a4Bby/+mlQwplKEk9ay+DrMR0 VSm56/9m/TfLJPXH1axo6Ccnn12yRT4yi8lizyrNpP4o+xBRl3Sc6D9UBLtnxq3EoX1g tNtOTuTZNj7AEyeZdATq4FPXTxJ+qWiqnrIN3rOj5jgfyxOvSfBumONt7p2K/IItV1kq o9ddR+Hl86i2f7uvt0eCej8BofBnv076JsbePGxdjL/74miJO8bb7VFfWKsztl+dNhrG WFxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si7297941pgs.326.2019.08.03.18.05.07; Sat, 03 Aug 2019 18:05:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404595AbfHBRUz (ORCPT + 99 others); Fri, 2 Aug 2019 13:20:55 -0400 Received: from mga09.intel.com ([134.134.136.24]:2727 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388134AbfHBRUz (ORCPT ); Fri, 2 Aug 2019 13:20:55 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2019 10:20:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,338,1559545200"; d="scan'208";a="191888588" Received: from linux.intel.com ([10.54.29.200]) by fmsmga001.fm.intel.com with ESMTP; 02 Aug 2019 10:20:54 -0700 Received: from cwhanson-mobl.amr.corp.intel.com (unknown [10.252.133.191]) by linux.intel.com (Postfix) with ESMTP id EC81358046F; Fri, 2 Aug 2019 10:20:52 -0700 (PDT) Subject: Re: [RFC PATCH 19/40] soundwire: bus: improve dynamic debug comments for enumeration To: Vinod Koul Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, gregkh@linuxfoundation.org, jank@cadence.com, srinivas.kandagatla@linaro.org, slawomir.blauciak@intel.com, Sanyog Kale References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> <20190725234032.21152-20-pierre-louis.bossart@linux.intel.com> <20190802170041.GW12733@vkoul-mobl.Dlink> From: Pierre-Louis Bossart Message-ID: Date: Fri, 2 Aug 2019 12:20:52 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190802170041.GW12733@vkoul-mobl.Dlink> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/2/19 12:00 PM, Vinod Koul wrote: > On 25-07-19, 18:40, Pierre-Louis Bossart wrote: >> update comments to provide better understanding of enumeration flows. >> >> Signed-off-by: Pierre-Louis Bossart >> --- >> drivers/soundwire/bus.c | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bus.c >> index bca378806d00..2354675ef104 100644 >> --- a/drivers/soundwire/bus.c >> +++ b/drivers/soundwire/bus.c >> @@ -483,7 +483,8 @@ static int sdw_assign_device_num(struct sdw_slave *slave) >> >> ret = sdw_write(slave, SDW_SCP_DEVNUMBER, dev_num); >> if (ret < 0) { >> - dev_err(&slave->dev, "Program device_num failed: %d\n", ret); >> + dev_err(&slave->dev, "Program device_num %d failed: %d\n", >> + dev_num, ret); >> return ret; >> } >> >> @@ -540,6 +541,7 @@ static int sdw_program_device_num(struct sdw_bus *bus) >> do { >> ret = sdw_transfer(bus, &msg); >> if (ret == -ENODATA) { /* end of device id reads */ >> + dev_dbg(bus->dev, "No more devices to enumerate\n"); >> ret = 0; >> break; >> } >> @@ -982,6 +984,7 @@ int sdw_handle_slave_status(struct sdw_bus *bus, >> int i, ret = 0; >> >> if (status[0] == SDW_SLAVE_ATTACHED) { >> + dev_err(bus->dev, "Slave attached, programming device number\n"); > > This should be debug level yes, good catch, will fix.