Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp963779ybi; Fri, 2 Aug 2019 07:11:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9NJMqN9mp6fFto8hC7FGiquA/DRHgv+Maaskntt2Kteef6OPz2GlidIQ47zPXwFktHJCh X-Received: by 2002:a65:654d:: with SMTP id a13mr107851605pgw.196.1564755080088; Fri, 02 Aug 2019 07:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564755080; cv=none; d=google.com; s=arc-20160816; b=FK16/dl6nw5Ud1dSpwe6uFnMZQ/0ueV0Rhkj7TQtvOwcSBMK/6XNCGzaV3qy8l5pwP B/yicdSmcwY6rG0DrU7Cpcw1hQArMVfeczow2glg3eS4tyAlGMIsq9l45fj36nDSj6tr /h9Yd5WsSj8vZypAR2kju+4c7lKV2r0WnwHaa7qJ2d0JpE8Z7b0JBg+sSZB2sp8/edAn SbfFOngvfWQPiDJ3XQ5TvTkJUe8EFN0/g30eUv8g+FJOslHfxdAi1d2XZH6VjKhfKEHL DVExdC6FtAVRO7lxA0vW78pmxRZl3Nvg93Jv5apZIF7O1x7kDdzRUioC2ex1uGyjyN4C i57w== 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=Nol1uA4UmS0Ix8X4ex52JTRdpvU3Z1ad4C/UhHEGUBU=; b=xw9v4uufYxSFnE5Qx0EOp1eWTWSUXMxBgvG4Z55bkGH0e9AgHNmOPT24uEL0H7gRm8 srbpCYvt2yyuTYIVPAHaN2IQsODsehns867cWXZyyDi1edeBUeyE8e65x8nrhOhD1Vkb 4XLm+P9AbmQmnf7aTCzAVm0Ggb72FdH1xIvt7Ds8l2bP3Z2iXuplmnWxmYocisZ7DwCo dP86iKfCAPl+ztKFxE4FQ7ToPkx19COhj1RT0xmhrf2VDY31U4BKJ8u010PGhrmu42CF 3Uu6zgYKuHKamala6OKFNNPWW3dvAMFZr00vPwd+G/2yVnyvw3nQU6GA0HhUa6CAFatu 6WQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GdeftaTW; 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 cb13si62425663plb.325.2019.08.02.07.11.04; Fri, 02 Aug 2019 07:11:20 -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=GdeftaTW; 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 S2390165AbfHBLzN (ORCPT + 99 others); Fri, 2 Aug 2019 07:55:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:52122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731531AbfHBLzN (ORCPT ); Fri, 2 Aug 2019 07:55:13 -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 9A1542067D; Fri, 2 Aug 2019 11:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564746912; bh=sWoyemYZ9hmRo2SD2T14xHR8u76Tax1dvnuelEUu/0s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GdeftaTW+0MnAlzhnw6VEkCnAXk6sr9nf9eiZGPYjN+j9RvegFC2izQec9qS4rNoy whOK3DE9pB+2Heyznu7wwZk07AjmQnTdEL49wniApETiqMm04c9Zpq4MBT2dAwiMWo /16+H+VXxoGFLlslWhKA0CIwdZueVthTtRuj8mc0= Date: Fri, 2 Aug 2019 17:23:59 +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 05/40] soundwire: intel: move interrupt enable after interrupt handler registration Message-ID: <20190802115359.GH12733@vkoul-mobl.Dlink> References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> <20190725234032.21152-6-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-6-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: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 -- ~Vinod