Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp448539ybi; Fri, 26 Jul 2019 12:32:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+ccXBK9EDISId3hfei4BYkVIlCnAuC7UTLqhEic4C4KBgv4hYyp1TJP/pl+h3PyzPaioB X-Received: by 2002:a62:38c6:: with SMTP id f189mr23995188pfa.157.1564169544573; Fri, 26 Jul 2019 12:32:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564169544; cv=none; d=google.com; s=arc-20160816; b=pED5Wxz4yvmvqQlq8uURMQv09NhQrN4O4Z0BUrfNRi7kR6CYF62PrQXLrRhK7THK8a OWU2EX6RS8yTPAAU1UzPjDgJ5vf75t3ES3sJXLE7SXsI2UPNaJSYdTD5AGOeCCNQqpTA AMPbIgW2mIl624W0b6tVniujutL6tzQ14GwWCzcudf5RvY/QGb7s+1CkWV4WKUJDfNR2 JiYTrv9x/DBfYOT8tiWsAfHKfr5KZQOHt2/fNTWFXmi2XnGkm7vIPQc2q3QxXhB1UMzg RgCt+aaHv2cMMOFbFuQn0vabOnL+/JpK2aiZJZ5Hg+UbA+STsjEfOnRimsT3WR364pip 4VBQ== 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=V53W3nrEO6pT6rmOVlTj1JL/4N5/URef/+eCR/FYN+Q=; b=o5ZX0NIuMXOWoWX5Clswe6WUup8qrbtChUCXRvX2xuKluJQJEs/dEz1XTb4NWuN/ZX 5Kz3/xNCLvarcpDWshoQD4Iar80zNmDI8/1VMJu16Dp1WiM8YeKp9b5wyrhgiMhU1Hmy ivZ2ls9FoeOZZlAbkZ8ntAZIs5kkqVBiey0S7avgD0QENGKilCQqWYGIziUzFjZg1lja CVjtRZEMLwsYx3psxIGet7sAXYg88dtMv6SZe+M05k+EiniMSXJsCHIy8HZJCd6EPreV Ev9V6cWmoFx5dI62N6sKHdWkC7Uf2h0dihPHk3UIgJyRh7RI9SHCFQTXEkDD4mhhUNRX LIgQ== 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 m3si21158644pgq.414.2019.07.26.12.32.09; Fri, 26 Jul 2019 12:32:24 -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 S1727824AbfGZRWR (ORCPT + 99 others); Fri, 26 Jul 2019 13:22:17 -0400 Received: from mga03.intel.com ([134.134.136.65]:63386 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726675AbfGZRWQ (ORCPT ); Fri, 26 Jul 2019 13:22:16 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2019 10:22:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,311,1559545200"; d="scan'208";a="198460217" Received: from andawes-mobl.amr.corp.intel.com (HELO [10.251.145.66]) ([10.251.145.66]) by fmsmga002.fm.intel.com with ESMTP; 26 Jul 2019 10:22:15 -0700 Subject: Re: [alsa-devel] [RFC PATCH 35/40] soundwire: intel: export helper to exit reset To: Guennadi Liakhovetski Cc: alsa-devel@alsa-project.org, tiwai@suse.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, vkoul@kernel.org, broonie@kernel.org, srinivas.kandagatla@linaro.org, jank@cadence.com, slawomir.blauciak@intel.com, Sanyog Kale References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> <20190725234032.21152-36-pierre-louis.bossart@linux.intel.com> <20190726155213.GK16003@ubuntu> From: Pierre-Louis Bossart Message-ID: <4b1f657c-e75f-d817-aa86-4224ce459a01@linux.intel.com> Date: Fri, 26 Jul 2019 12:22:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190726155213.GK16003@ubuntu> 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 >> @@ -161,6 +161,7 @@ irqreturn_t sdw_cdns_thread(int irq, void *dev_id); >> int sdw_cdns_init(struct sdw_cdns *cdns); >> int sdw_cdns_pdi_init(struct sdw_cdns *cdns, >> struct sdw_cdns_stream_config config); >> +int sdw_cdns_exit_reset(struct sdw_cdns *cdns); >> int sdw_cdns_enable_interrupt(struct sdw_cdns *cdns); >> >> void sdw_cdns_debugfs_init(struct sdw_cdns *cdns, struct dentry *root); >> diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c >> index a976480d6f36..9ebe38e4d979 100644 >> --- a/drivers/soundwire/intel.c >> +++ b/drivers/soundwire/intel.c >> @@ -1112,6 +1112,8 @@ static int intel_probe(struct platform_device *pdev) >> >> ret = sdw_cdns_enable_interrupt(&sdw->cdns); >> >> + ret = sdw_cdns_exit_reset(&sdw->cdns); > > This isn't something, that this patch changes, but if the return value above is > ignored, maybe no need to assign it at all? The return of these two functions was used with in some logs at some point but they obviously vanished. I'll re-check if we care about the status, could be that it never fails Thanks! >> + >> /* Register DAIs */ >> ret = intel_register_dai(sdw); >> if (ret) { >> @@ -1199,6 +1201,8 @@ static int intel_resume(struct device *dev) >> >> sdw_cdns_enable_interrupt(&sdw->cdns); >> >> + ret = sdw_cdns_exit_reset(&sdw->cdns); >> + >> return ret;