Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3526337pxa; Wed, 26 Aug 2020 02:52:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7qCIjeQRwWk30GS32Kn2YO1H0ZLZCuVheC6+BXqcRT3KqEdXXX9FAQsKJgT0V+G6VHi/J X-Received: by 2002:a17:907:2115:: with SMTP id qn21mr14547652ejb.241.1598435520115; Wed, 26 Aug 2020 02:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598435520; cv=none; d=google.com; s=arc-20160816; b=U9TWms9/gNW2eK+XwVeat+rsopQKmbBwJk2OvWKp8y+95DWWfqj9wYP0jGW12+J621 yBuwZQZ08fIS/xL328il5p+hCPU9ALIX8tZag3vZfGZxaoJoi53bBvgaCjYzTzhrDJfj NEzXJSoQ4D+DzefL60dU+GnJksRQ+0MvqgaXKbImlamg++8qGBXJ/XMl6viGaeVgQdnY S9uBuDI/6e6kqRPK72K8I1HOQbMpNR3KIso2SCZcB2vqWmtZIkWWKMOhGc9Ac7kvjRZm qG5nNRvTqWE03BrOTSCoM6TQGip8hvvB50PBNfMuzCSlfqduUVD3L1Y5m4Q8lCBsSPwZ 0h+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zaUGYqZ7Mgc4/GfdWFysucqWb0FepjG05CT7cM+Tdjo=; b=b1JrQC8FD9AdOTAawuuDUZWBI3xAalxoT7HueKpVhh6ctV9EQ0pejFDvVU6ddqJb3g 1MCzF6pwXXkMkBn9qmtdEiDoypIhOLKqTNKWWvNX6ClyTIQffQGzuxDxZZ2dThfV7neq T7xcpdZzZ5XKmz8vgdqL7BdV+9MMhnsWX4gbSGtwF+vDofA9JKsHRAjpTYMmiLzLBF2c mVqBKhUuWVCDtXwOUMC6jsxEX8tpimw1CoE27KVds6L2LN7h5ySqLJVQwXfqCSKF/EkC XsFqs5lPiDW5dWunemVw89aeNTm14AGe01yD50w7SL16ETsKXK2/rEX0ktzY/2mYDH5X 1HbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n0wzNPBU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id c21si1099430edw.84.2020.08.26.02.51.37; Wed, 26 Aug 2020 02:52:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n0wzNPBU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728145AbgHZJsZ (ORCPT + 99 others); Wed, 26 Aug 2020 05:48:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:48438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727125AbgHZJsW (ORCPT ); Wed, 26 Aug 2020 05:48:22 -0400 Received: from localhost (unknown [122.171.38.130]) (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 C33EC2075E; Wed, 26 Aug 2020 09:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598435301; bh=Iy0PPrLl7Bd/yyILufkraB05ZmIEaRK3D+xoob+NABs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n0wzNPBUocQie5n5JGb5sa+2fSll3loKsiMANLvADZJf2PGrwPs9ClV0OLHylkORD da0y3shYsUpokhL0bEOXYPqNPh4O395aiK2sSEUK0jrV01m15hFJgnYBQY0C/Mk6Ny hcqrlwsqWjSIGDDqkBxw/7+GKzlZH4znwz/bXiZw= Date: Wed, 26 Aug 2020 15:18:17 +0530 From: Vinod Koul To: Bard Liao 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, rander.wang@linux.intel.com, ranjani.sridharan@linux.intel.com, hui.wang@canonical.com, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, mengdong.lin@intel.com, bard.liao@intel.com Subject: Re: [PATCH 09/11] soundwire: intel: add dynamic debug trace for clock-stop invalid configs Message-ID: <20200826094817.GC2639@vkoul-mobl> References: <20200818024120.20721-1-yung-chuan.liao@linux.intel.com> <20200818024120.20721-10-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200818024120.20721-10-yung-chuan.liao@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-08-20, 10:41, Bard Liao wrote: > From: Pierre-Louis Bossart > > Detect cases where the clock is assumed to be stopped but the IP is > not in the relevant state, and add a dynamic debug trace. you meant a debug print..and it looks like error print below (also in title). > > Signed-off-by: Pierre-Louis Bossart > Signed-off-by: Bard Liao > --- > drivers/soundwire/intel.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c > index 7c63581270fd..b82d02af3c4f 100644 > --- a/drivers/soundwire/intel.c > +++ b/drivers/soundwire/intel.c > @@ -1964,6 +1964,11 @@ static int intel_resume_runtime(struct device *dev) > } > } > } else if (!clock_stop_quirks) { > + > + clock_stop0 = sdw_cdns_is_clock_stop(&sdw->cdns); > + if (!clock_stop0) > + dev_err(dev, "%s invalid configuration, clock was not stopped", __func__); > + > ret = intel_init(sdw); > if (ret) { > dev_err(dev, "%s failed: %d", __func__, ret); > -- > 2.17.1 -- ~Vinod