Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp671401ybh; Sat, 3 Aug 2019 07:24:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgFHY7BJiYmkxscDJtPJlD9G5HdkXreAyTyZ+Q2nb4IgqT/hhiXms/ZjHNNTZnro93ZSmF X-Received: by 2002:a17:90a:30aa:: with SMTP id h39mr9585676pjb.32.1564842255082; Sat, 03 Aug 2019 07:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564842255; cv=none; d=google.com; s=arc-20160816; b=AOUfO243tT7+qJ+ic35kgrCGFGfbMI1sqrLsb5lVH8XOH9be3zzXuIjmAF5uJedrrF hj6sCVxruO25HJub4zeKRoTijWMsSPBi7xECmbVMM8BgmbvCupTeWrhS5m+eDmCHLZyB VPx9GDaUAqwxoSBu+q1qnFTqUOx6rAwJwCDT1QzlfqWZWtr99l6rwU9rRA+lrBmSF6HU k5bsd6mZW0TtNGdtcAAxDeg8mGtq6wgx/oBnoRKAZhHn9tcbWdAAQCTa/UUUxfzRNa91 8TnplOP6slqizvA1cEWBzNNjDM1WTMagQalN+67rggbZj75SKc+HzS3PMx9J+NBLcha5 zMgw== 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=2EEXPp9P2q/F4sN6STo8KTOGSINc8NLWzPtkVOuTUUc=; b=I6DtJoxyRS+6h8qsDfUKMfcaZYRiqAA6cisrOsCRI1wGHPNXJgNWafxaTj7H7xt+1Q ZeuGAlQqxKEWDMiaKtytjyeiSeV3qIO59gB97qJ5AzeW2LGfXMCCNr4c2UTQXA1Olb1u 1icn2XkUWjivsWxaMxkYwipQpfJS0Pr1TjikyviEanXyZ47YLJJhpEgANrv80dX+NeLF qSOzPs9/fq5YGSgcItk0e+wHGxyAoGRIa0OmePRHdOGwE4yEIkFpCdQA9CyzmTuv1Uk9 h953gK4jz7xru2WnNNQPW6e88vI16s+WoYu/kUF/XOseX5OlHYHTS9vxsWLfTNXrQ2IG XVvg== 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 s8si39770075pgq.538.2019.08.03.07.24.00; Sat, 03 Aug 2019 07:24:15 -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 S1727979AbfHBPIb (ORCPT + 99 others); Fri, 2 Aug 2019 11:08:31 -0400 Received: from mga02.intel.com ([134.134.136.20]:10558 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbfHBPIb (ORCPT ); Fri, 2 Aug 2019 11:08:31 -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 orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2019 08:08:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,338,1559545200"; d="scan'208";a="175607546" 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:08:29 -0700 Subject: Re: [RFC PATCH 05/40] soundwire: intel: move interrupt enable after interrupt handler registration 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-6-pierre-louis.bossart@linux.intel.com> <20190802115359.GH12733@vkoul-mobl.Dlink> From: Pierre-Louis Bossart Message-ID: Date: Fri, 2 Aug 2019 10:08:28 -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: <20190802115359.GH12733@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 6:53 AM, Vinod Koul wrote: > On 25-07-19, 18:39, Pierre-Louis Bossart wrote: >> Not sure why the existing code would enable interrupts without the >> ability to deal with them. >> >> Signed-off-by: Pierre-Louis Bossart >> --- >> drivers/soundwire/intel.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c >> index aeadc341c0a3..68832e613b1e 100644 >> --- a/drivers/soundwire/intel.c >> +++ b/drivers/soundwire/intel.c >> @@ -981,8 +981,6 @@ static int intel_probe(struct platform_device *pdev) >> if (ret) >> goto err_init; >> >> - ret = sdw_cdns_enable_interrupt(&sdw->cdns); >> - >> /* Read the PDI config and initialize cadence PDI */ >> intel_pdi_init(sdw, &config); >> ret = sdw_cdns_pdi_init(&sdw->cdns, config); >> @@ -1000,6 +998,8 @@ static int intel_probe(struct platform_device *pdev) >> goto err_init; >> } >> >> + ret = sdw_cdns_enable_interrupt(&sdw->cdns); > > we should also handle the return yes, fixed already