Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1081728ybh; Sat, 3 Aug 2019 17:32:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCkEQP0TijEReTbJeN7Ctc/K0rsYI0uCRvx4uIQGFmonrYr80bvYehBz6WK7UNdOjj08uD X-Received: by 2002:a17:90a:6546:: with SMTP id f6mr11251363pjs.11.1564878752053; Sat, 03 Aug 2019 17:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564878752; cv=none; d=google.com; s=arc-20160816; b=bETsKKYAhLIJRxngYNaA3PmC4vPUKOo3Jk/LPe3x8EOHIN8Qao6iGNwz8oSDRLRMBE eDEX9laqaMf7AtBXI3pGN4KCv3863X/ixrof2y7xSV9mYr1O2zzvxoTJkNigRXDtYrCV CFEZ9N/NaA5VXN5CCxh+xnbdTqRjJePstwF9Pk28ZUAEpROz80mDSf0lyvVRD4XxPsWa HQx1tZSJQi9VhiebIbXdHxlYdIvkVOvxGPuQDxk5XRpIy10Rm9uvbs/113UJPeVjyonA s3fYgUisjTWdBm55UGhyTs+HF2Dc0e3UfXh3JOM3DtPVcoF74EkYnDUUqK9DFvfd4DU1 v8OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=eB4bY0cPSbPCZNkrDRYkQRPQYzrp4A6H6ARWjZ5oeIM=; b=1I1iUvWl4+w3z0iClpMDV59/kGTPdGkVb1EYyK5acMN4Wtlm3OyRZ97O+N8ss+y9vn KQjBn+is4svj+XDTbrqrqz6JPrVKpqHzpFC2EhI1vHVqtWgBdKwevLUojYn+S2hVoHHN NboylM8DspICb2Tc4ArEZvpDKXWmCOLic5R+69cKUfPPIxQ/Xy0LCUqfKVWew2gdCvzO a8CM8z6dLdnPJG0Or6Ml5mjOJZOi+SF+FbrnyXCxKJWWmdJNcxToAs6Jbs0vGV3cy96D 4LgmwrjkQV1q4Luxx/bOzcu0/cRL7UI+ob5bAFbPHahb83ZywxlxnLFyBCE7JdO4jBbZ P6CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WgSvT5mN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si25689532pgr.555.2019.08.03.17.31.40; Sat, 03 Aug 2019 17:32:32 -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; dkim=pass header.i=@kernel.org header.s=default header.b=WgSvT5mN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390756AbfHBRBz (ORCPT + 99 others); Fri, 2 Aug 2019 13:01:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:35030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388317AbfHBRBz (ORCPT ); Fri, 2 Aug 2019 13:01:55 -0400 Received: from localhost (unknown [106.51.106.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 758C820644; Fri, 2 Aug 2019 17:01:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564765314; bh=81WIba1X7p3pWbUBeQ1GQSo1cKlMvDKYNfZuSJQlpfU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WgSvT5mNd6IHS7jOiMG5utKDfZk/BcTKuetFrApytW53h/bN2xtDct6YokliMjY4M 5CG8yKquC83P0NGz6vnOCtIX4GkyuZIcLrpgFhFuPbbIGE5BET7lIEeABb0I2jb9rp vvYZndGqOEeL8uENEdWhJOXwJomTeZUoEnTf1RT0= Date: Fri, 2 Aug 2019 22:30:41 +0530 From: Vinod Koul To: Pierre-Louis Bossart 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 Subject: Re: [RFC PATCH 19/40] soundwire: bus: improve dynamic debug comments for enumeration Message-ID: <20190802170041.GW12733@vkoul-mobl.Dlink> References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> <20190725234032.21152-20-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190725234032.21152-20-pierre-louis.bossart@linux.intel.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- ~Vinod