Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp677139ybh; Sat, 3 Aug 2019 07:31:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ7cBCmzDXqRH8xNED32D8X1zZ69RFVhqKjxZ5QvTwRCl84DHbk7zg7pQMh14XVEAq5kQh X-Received: by 2002:a17:90a:ab0d:: with SMTP id m13mr9089253pjq.84.1564842691153; Sat, 03 Aug 2019 07:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564842691; cv=none; d=google.com; s=arc-20160816; b=gmSYlih84Q2xoMFfiwgCZZp8rhj6PU3/ASuZYi6pvQRIyWolhHJNh/HsFsF08/0U9W ReVbPl+vuxXw3VTd4EeJAsbIE1aiEAzTYkELd0h5cWY1D81mA/83oZKdGOhe8y58GXRH p7933cbsV30Lk97KMk/7qjDgxkhsI4Ukhq1kNman5oh2UcM5Mr4yiK8URtlCCwaPSucy 1HwTNlPTvM12mEduCOX49cs0ocItypTDYU7oooNr8X/jINlluQvwwFzuq9bAhw4IZA/l yiZAbm7y3X01a7OkOCO7TLbXlORX2WsAvfKePOsoegEJOw9WVPpBbnzIFAZMXVdX6eGn E3qw== 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=RMuaiGzKK4nnUvFikNJfNIcQ5A1rahkLIcgPQzsmwe0=; b=WjZ51ReVr/f9nCm0xkOrm5g8wHz4wZcv/qdXJRCnJ0U7W0abfRpzdE8gEofIq0HdeX GuEFO+KtCzSiKXM1dZ2edmHzv5kOzoHTCm1X4sOvO3le3SYUWvpbiMyQARcKHrCsZSjT dRNZvmKn4XVFeIst//an34znPtQPiRXKlRKM3VIBtvlPkFKsNBStwaCArrnmFQg2KnJL h9EV1D1558UiuysFtV4w5cqiaeFaS/S0JFZivmdpeSN9xGe8XETdLQcrRmh0quw9E7o3 aPIp0CZRadhe2CPuiLXVtLuOiwKeMYyrq+WY/oDcl1ydDIlxP6+ou7POIVdc17KwoMjv bn7Q== 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 u12si9316852pgb.595.2019.08.03.07.31.15; Sat, 03 Aug 2019 07:31:31 -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 S1729436AbfHBPSy (ORCPT + 99 others); Fri, 2 Aug 2019 11:18:54 -0400 Received: from mga12.intel.com ([192.55.52.136]:11592 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727599AbfHBPSy (ORCPT ); Fri, 2 Aug 2019 11:18:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2019 08:18:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,338,1559545200"; d="scan'208";a="175610387" Received: from vivekcha-mobl1.amr.corp.intel.com (HELO [10.251.131.115]) ([10.251.131.115]) by orsmga003.jf.intel.com with ESMTP; 02 Aug 2019 08:18:52 -0700 Subject: Re: [RFC PATCH 09/40] soundwire: cadence_master: fix usage of CONFIG_UPDATE To: Vinod Koul 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 References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> <20190725234032.21152-10-pierre-louis.bossart@linux.intel.com> <20190802120319.GL12733@vkoul-mobl.Dlink> From: Pierre-Louis Bossart Message-ID: <71786692-7bdc-d8f2-676a-b2e955675474@linux.intel.com> Date: Fri, 2 Aug 2019 10:18:52 -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: <20190802120319.GL12733@vkoul-mobl.Dlink> 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 On 8/2/19 7:03 AM, Vinod Koul wrote: > On 25-07-19, 18:40, Pierre-Louis Bossart wrote: > >> 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"); > > I was expecting cdns_update_config() to be invoked here?? > >> >> - return ret; >> + return 0; > > It would be better if we return a value here a not success always > >> @@ -943,7 +953,10 @@ int sdw_cdns_init(struct sdw_cdns *cdns) >> >> cdns_writel(cdns, CDNS_MCP_CONFIG, val); >> >> - return 0; >> + /* commit changes */ >> + ret = cdns_update_config(cdns); >> + >> + return ret; > > return cdns_update_config() yes, all of this is fixed already.