Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp262491ybi; Fri, 26 Jul 2019 09:17:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyszMtaIB+NfLkRU1IsUyW/En8zqJbzT4vXztQ4N+EdFXQb5a96JvkAl2c6kn1E6BlZz+h X-Received: by 2002:aa7:8b10:: with SMTP id f16mr23391368pfd.44.1564157870854; Fri, 26 Jul 2019 09:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564157870; cv=none; d=google.com; s=arc-20160816; b=wM5x7alFLPoknqdMNNFPr2+i/Ad7JiwN9KJsfkAmtd8f21uzkmOlNneMORd89uT6XO ICoHptsjgH8FZUcwgKmtkZC8cvggRKx/f4GjGO+rIiy3BLY07KmFv7orulSqPp1ywrUv uqkCCnmi0+J981uGHyenYTIBhebP+TdyaTRHRrGXvKs2zJh3eqrgn0Uw0Xe2X4HDTJ3O Nby9JspzhDg4TASL4iJZSGdd6KCFWiMeTEppGGawv/PWqHK6MizekxXp1JqfqWdKEbV9 aT0LV27BFK5bULD/wQOURaqg9mv8k7YAAtO5oNYapR4PfATjtU/7QbzTlTzEKG8+EO2D 4Q/A== 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=l1LBxkkq11+HBFBbeRYt2/1SL23iAjdRabfezzpVvHs=; b=P1w/awTyy7sEK0OgExYs8Yu0A3Wwmj9hPdJfiPeunIBgn+YgZAj5QGgAxljmVTlJv8 xN8XDs4sJaO4hLoNAEIRbvaxs0WzMP409BxJvfvHEAEfzF/c4BSpuFn6mOtKp18ma2Mv iWqJGctvhbMAdcgGcmZ3EXPMpbq0Q2PAK0TmVK9JAP3IS5G1l9NRvDvcCB1RKIqT9y04 vdLmVp/KPywu1yrD/FsT9/V7AoQnCEuAdGNxsvLaUQ6hgsl2JGby4ZKn6icBibLxjAqG WSw2R++ayJMfRbiOxD060/ZQehAViqKGvbcsARNiNt+STLTiwVSSc4X4iDT6cqW2RU2M WEaQ== 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 x3si471203plb.164.2019.07.26.09.17.34; Fri, 26 Jul 2019 09:17:50 -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 S1727266AbfGZNdJ (ORCPT + 99 others); Fri, 26 Jul 2019 09:33:09 -0400 Received: from mga03.intel.com ([134.134.136.65]:48738 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbfGZNdJ (ORCPT ); Fri, 26 Jul 2019 09:33:09 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2019 06:33:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,311,1559545200"; d="scan'208";a="322039842" Received: from msmall-mobl.amr.corp.intel.com (HELO [10.251.154.62]) ([10.251.154.62]) by orsmga004.jf.intel.com with ESMTP; 26 Jul 2019 06:33:06 -0700 Subject: Re: [alsa-devel] [RFC PATCH 09/40] soundwire: cadence_master: fix usage of CONFIG_UPDATE To: Bard liao , alsa-devel@alsa-project.org Cc: 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-10-pierre-louis.bossart@linux.intel.com> <3aa182a9-4b8e-96dd-e8f8-f2f5a90401cb@linux.intel.com> From: Pierre-Louis Bossart Message-ID: Date: Fri, 26 Jul 2019 08:33:06 -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: <3aa182a9-4b8e-96dd-e8f8-f2f5a90401cb@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> @@ -758,15 +774,9 @@ static int _cdns_enable_interrupt(struct sdw_cdns >> *cdns) >>    */ >>   int sdw_cdns_enable_interrupt(struct sdw_cdns *cdns) >>   { >> -    int ret; >> - >>       _cdns_enable_interrupt(cdns); >> -    ret = cdns_clear_bit(cdns, CDNS_MCP_CONFIG_UPDATE, >> -                 CDNS_MCP_CONFIG_UPDATE_BIT); >> -    if (ret < 0) >> -        dev_err(cdns->dev, "Config update timedout\n"); >> -    return ret; > Should we add cdns_update_config() here? indeed, this would be a good improvement. The code works because we added the exit_reset() sequence which does call cdns_update_config(), but better make this function self-contained. When we enable the clock-stop mode we will not do this reset sequence.