Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11986321ybi; Fri, 26 Jul 2019 02:55:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFgTeQoCn4/YDaobye51q8LgB4Lq66QtDvrxKbTjjvgCsjQPzOghp8SxpSUIttFyMZJFp7 X-Received: by 2002:a65:5584:: with SMTP id j4mr60082080pgs.258.1564134957012; Fri, 26 Jul 2019 02:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564134957; cv=none; d=google.com; s=arc-20160816; b=C/qskmy24gHR9oeJiyLYION5MH3viLK8OgATawBseUDuXVlEVyAEvySHSaVvl2AKvr 6I7l+r3g1KnpsaKSVy54ZTj54p1Xdx6oEf5bCIxFUSVttf+Rd+ziZGieJGE2mYDEDOQq +MvFSxcPMd2LZ+iCXS/nXO/LfECput1WoNLDnjNeyEyOMU/a2DHQuJmLQcmpRkL/EQ2o jI779HnLkRXfSNN4MZFYz6zyN5W8kwLCW7YiDUYdpMjrtPJTBv4ouNQAx59tcCnf7zt4 H03H/AyA0W7fuLOSrj2FiA69Ynx7xxZx6nEFYEvJHdPREppTvCY1ZgS6+ILvbAsHlPGz UqyQ== 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:references:cc:to:from:subject; bh=+DFQCHQCdkps57QG4EqzbFXGhI2wJW+6giBRDX32DjY=; b=eEj2l+uu5q9BbhMwAA7cBiubpZxdigTbtYj85YVfZ13ELGWJN+WT7QsdEwQnWU6KWY ggy77jEEpb3kNJBZMJbHpr7LoLrF3P46UG7P1EyHiV40hhNgtniNL+255xJGZlvxBWyl Wr1NgSfmzrFDqNw+KZPMWmm/6ZvK/AQcVlrXN9G4psJtzML9Ij1ogyAazDpv4ccCL3de 45cKUGk7mPGlvEs0yKbEEcHeB5rFjf6WZYvFmWilKFFrSfCNbssjDojEbiYIa/hRdoUI o3YZu+Kco7L311UDmtJyT8dI8xgc1KS1ljORg39czv0/yF/+p/JAtZjmhIR2s/qJTzU4 OoLg== 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 w5si20059737pfi.264.2019.07.26.02.55.42; Fri, 26 Jul 2019 02:55:57 -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 S1726004AbfGZJzE (ORCPT + 99 others); Fri, 26 Jul 2019 05:55:04 -0400 Received: from mga05.intel.com ([192.55.52.43]:9014 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbfGZJzD (ORCPT ); Fri, 26 Jul 2019 05:55:03 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jul 2019 02:55:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,310,1559545200"; d="scan'208";a="175549843" Received: from crojewsk-mobl1.ger.corp.intel.com (HELO [10.251.89.116]) ([10.251.89.116]) by orsmga006.jf.intel.com with ESMTP; 26 Jul 2019 02:54:57 -0700 Subject: Re: [RFC PATCH 09/40] soundwire: cadence_master: fix usage of CONFIG_UPDATE From: Cezary Rojewski To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, vkoul@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> <980e074e-0736-1b17-266b-2ef0ae7d7823@intel.com> Message-ID: Date: Fri, 26 Jul 2019 11:54:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <980e074e-0736-1b17-266b-2ef0ae7d7823@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 On 2019-07-26 11:53, Cezary Rojewski wrote: > On 2019-07-26 01:40, Pierre-Louis Bossart wrote: >>   /* >>    * debugfs >>    */ >> @@ -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; >> +    return 0; >>   } >>   EXPORT_SYMBOL(sdw_cdns_enable_interrupt); > > Rather than ignoring _cdns_enable_interrupt - despite said func always > returning 0 - simply do: return _cnds_enable_interrupt(cdns) and flag > caller with inline. > > Afterwards, one can think if such encapsulation is even required - > remove existing sdw_cdns_enable_interrupt and rename > _cnds_enable_interrupt? Nevermind, I see you simplified it in the next patch..