Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1405739ybi; Fri, 2 Aug 2019 15:09:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUl+9VB5m/lGsfklFOfDA4r8UcxAl/WQbVarpN1ht/IlTGU/rGo1M0ZWJXFy1mowHzr1HN X-Received: by 2002:a62:e20b:: with SMTP id a11mr62509310pfi.0.1564783753242; Fri, 02 Aug 2019 15:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564783753; cv=none; d=google.com; s=arc-20160816; b=xC5o3V96W5InfsaFDPtG6UIvpK45m6QD8q4gh3LjfGNtnIEq0gfxuGb+24NchhV5+m qEUjQL7/ngNyPp5TpMAjZVQwzVrtl0GGROtWO9F8wj9eQCF5a7niBzJSx91Qw05hr9Ye xP9CgHEAgHAwFSJ2nxzd7Su1mDuUjxlZ+TChVrJedX0fAVJ9geDwyKSeu6BMV4CYjOrE k9ysMuHtl/4b6k3Pn8ebBthKW8VaH59aY4W4K85tOZlJwKnKj/QxONo7+AbpZjHJYz6U 6EHXoB1QfFVgdnqfFYNu4t3NL/Enbo9VnHY9fve/MHeJ5aD5L19w8AJLcYKW+OUBpP17 5x0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u86ixRdIsoQgfapjxcYCa5HGd2YWWMCnDni1KpRYHLM=; b=DHQjuumXaibK8eLOY3VHJQ7xlaztR1uTEjA8Q8Ng9iDBd5pDomS6bmc9A1gtv2cAYX hOn96eYk2GtJv3HQ3SWHb5PjjNRttwR7kwr/hYzQntUAchPA0Py431YBI0J4SD90b0rx soi/WSE0X2oqjwGbTV70utpvlJo+yMfBWdVjBhPyQhpzrgVi5IgS4QwWj0FZmY9E0elx eqrobgl/c+ugRVo8IX6CP8lkHfM849EaxG5D3aeWp++lHADofIYk51MjjO0nU16r+1Zo mUi7vXRqwGof68mOiMmNRSg0jQKUYw8TgdFl9p2HFUGmeRfvpWnj8OUcW9sMqU3qLdIX 3+3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="g/mwuVls"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h64si37759392pge.208.2019.08.02.15.08.57; Fri, 02 Aug 2019 15:09:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b="g/mwuVls"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391000AbfHBMEd (ORCPT + 99 others); Fri, 2 Aug 2019 08:04:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:56168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731018AbfHBMEc (ORCPT ); Fri, 2 Aug 2019 08:04:32 -0400 Received: from localhost (unknown [122.167.106.83]) (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 45E7A217D4; Fri, 2 Aug 2019 12:04:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564747472; bh=/kpJla9WeKldYo1/lnDxbEjbR87vMoISXQQCgtBoZto=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g/mwuVlsLVM0vUEqCk5irj9rgOjuXDEHFRt70sok9NfzPYE89saMS9ajdKjpzmNXf oy0dUKtOmATPQVmufxiPXOZTHD80xcTwyYEQLH5gPBMjunhd+J6fy4rgGLITLZq8at 2TNJkbx6rKu9M2bZ3VveQCdaTl27oq35R3rC3T8w= Date: Fri, 2 Aug 2019 17:33:19 +0530 From: Vinod Koul To: Pierre-Louis Bossart 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 Subject: Re: [RFC PATCH 09/40] soundwire: cadence_master: fix usage of CONFIG_UPDATE Message-ID: <20190802120319.GL12733@vkoul-mobl.Dlink> References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> <20190725234032.21152-10-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190725234032.21152-10-pierre-louis.bossart@linux.intel.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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() -- ~Vinod