Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp450509ybi; Fri, 26 Jul 2019 12:33:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJFDU6V9CuyopneOuZVlXTYCKW6wL/Spd73lcnGOmf7+L0O+Ka185X+FFabHwNswo63Eam X-Received: by 2002:a65:6846:: with SMTP id q6mr54182772pgt.150.1564169634005; Fri, 26 Jul 2019 12:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564169633; cv=none; d=google.com; s=arc-20160816; b=QtKfVbeHIMh7RualTgqijzZg4j1DJRnEtD0QAK3unOhCMd9RLEnyZ9jN/KYivtCUG3 bDguaDSCqpXp2fVskprTdAHXf4bjr9JuLQfuCDoNOap2lnP245Yqq4fu5H/i0x2TM6UH WYQI/NSGN3loC+i6iSKIUVTdBgqOHLcJsR4OwyDavqTmADhxrUl3opWmb1xhxZHXOcIv /U5MicWM8NQbcbvceRkH8rDgiR3/Iz1XOhbMUbRwpTspteqcYG46/eS9ynH7S5z7s9oF bDbKnSSODHxv1nrSi289qIe7E3QvlEPoPLsWpF9tz+CMvoi+HYFO0GQaMtvQ23AphYc4 ITvA== 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=IuhCuzb9iIRvxbQeOkO0Z4+7jEsE7Q7wVNfJl59HsnY=; b=iiYdbqOQg7k9qRxg8Ky4LuRFZ8vifcqgKq59qZ6Xe36EqoMFoA5MFNeqnrgp+LBsUa BST+/dq5jwYswbmWQiEvWAH/5SHMD9AATVgstJ/PtQzDdIIsBFLAxwIG/+XHZqAiQdPa XMyqsojqjhhjsVqE0N/FMvbtC/F3vDe0ZxAqIH8kS4g+XERhTEHubKbGLZJhRz8YWpy0 kgmJjsDX5mbbhlRPRMb3dPIDfwnaUJMCF0Hx2ILhMrG2eKtqAG7bdlBEtAPsjUFS+H4l xU5cXEAci3R2yIinHbdjQPZmQS5HmkmU6Nqx2N/rb5Ma6BvHstErQ1dwIS8sjv65UMpO o5jA== 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 r17si19885935pgg.155.2019.07.26.12.33.38; Fri, 26 Jul 2019 12:33:53 -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 S2387872AbfGZRft (ORCPT + 99 others); Fri, 26 Jul 2019 13:35:49 -0400 Received: from mga11.intel.com ([192.55.52.93]:42766 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387622AbfGZRft (ORCPT ); Fri, 26 Jul 2019 13:35:49 -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 fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2019 10:35:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,311,1559545200"; d="scan'208";a="198464400" 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:35:48 -0700 Subject: Re: [alsa-devel] [RFC PATCH 38/40] soundwire: cadence_master: make clock stop exit configurable on init 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-39-pierre-louis.bossart@linux.intel.com> <20190726160258.GN16003@ubuntu> From: Pierre-Louis Bossart Message-ID: Date: Fri, 26 Jul 2019 12:35:47 -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: <20190726160258.GN16003@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 >> -int sdw_cdns_init(struct sdw_cdns *cdns); >> +int sdw_cdns_init(struct sdw_cdns *cdns, bool clock_stop_exit); >> int sdw_cdns_pdi_init(struct sdw_cdns *cdns, >> struct sdw_cdns_stream_config config); >> int sdw_cdns_exit_reset(struct sdw_cdns *cdns); >> diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c >> index 1192d5775484..db7bf2912767 100644 >> --- a/drivers/soundwire/intel.c >> +++ b/drivers/soundwire/intel.c >> @@ -1043,7 +1043,7 @@ static int intel_init(struct sdw_intel *sdw) >> intel_link_power_up(sdw); >> intel_shim_init(sdw); >> >> - return sdw_cdns_init(&sdw->cdns); >> + return sdw_cdns_init(&sdw->cdns, false); > > This is the only caller of this function so far, so, it looks like > the second argument ATM is always "false." I assume you foresee other > uses with "true" in the future, otherwise maybe just fix it to false > in the function? Since we are at RFC level things are not set in stone, it's not fully clear if this test is required or not. I added it since Rander reported an error on one of the target platforms that I didn't see personally. We'll double-check if it's needed. And if indeed it's needed, yes it'll be set to true when we add clock stop.