Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11445746ybi; Thu, 25 Jul 2019 16:45:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqztnn77ZyytGq+vS8Nf501Gh3w0hmvIwvKX/UQ3xKFeE6K04rqbPtjF1vea9gl1xy8BX9LM X-Received: by 2002:a63:6187:: with SMTP id v129mr3770593pgb.153.1564098304016; Thu, 25 Jul 2019 16:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564098304; cv=none; d=google.com; s=arc-20160816; b=aG+ayCAM4GDRRoSb7QEnkb6DxcFz9nV57F8/MDcLQH9CKpb5ijsSSM/DyfuKZp62t6 qjGMrOoJkQjMW0H1hzDJP3hJ+kOK+B0INDkI88PRn/Tvm5ruOHI1vzY7WZuUdsk23ThR /4SWlGvwqPxbbX4RThmNPddwG6CgbJv2OUy4pFWtBH6mGmig3iKMOyfpMNf9VyVatk/E Yjh3MDpLrVdhwDUmcGmBTPCwowWiuzxdp29HFjAwZ8kPRTLdwiC2FGFN49dMeRWqmRby vJcOwewwzBTzK9FTcdE4mBn+t+3+OAenUkOqG6GSY2ks5+M74jbG14/EbdfhcB5ZKC4p xOQQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=R+VeAgyzsirtHc5xV40mwB6n3wIz1rixa3DxKG1d6Ao=; b=0eWxIa1HU44ZdZJdu1iXk76STd6+zcYNu+GiqmVsn3m0zr41oEYHPOtAgunwoOYnG6 avTsJbyZbgP28Eecp4goWvqnv+Dn6vPqt3RfTDNRVO/6Xcb0XoDCJJm+hubrcLXlFRzC TF8hvxXuoDchZmUnKJCYDMOBaQ0ET3CxCUtga2B9MhhtFdSndgYMZoUPfltgNs3g+i7u e6zZpd8WwBfmJbFFK5I0bRUFglrGDiFWvcR4efCuXyQK8m/ryn7ToLMV1LefhXiCM+n6 KGyIRGGtWAImVksr6AwyUkh89ywSBXbUYl5gcVJfz9cg6NSZSHUYpQuI43bA/TmeZcqE XBiQ== 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 h6si19079775pgc.202.2019.07.25.16.44.49; Thu, 25 Jul 2019 16:45:04 -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 S1727204AbfGYXlN (ORCPT + 99 others); Thu, 25 Jul 2019 19:41:13 -0400 Received: from mga06.intel.com ([134.134.136.31]:51808 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbfGYXlH (ORCPT ); Thu, 25 Jul 2019 19:41:07 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 16:41:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,308,1559545200"; d="scan'208";a="369874651" Received: from amrutaku-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.255.230.75]) by fmsmga006.fm.intel.com with ESMTP; 25 Jul 2019 16:41:06 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: 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, Pierre-Louis Bossart , Sanyog Kale Subject: [RFC PATCH 05/40] soundwire: intel: move interrupt enable after interrupt handler registration Date: Thu, 25 Jul 2019 18:39:57 -0500 Message-Id: <20190725234032.21152-6-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); + /* Register DAIs */ ret = intel_register_dai(sdw); if (ret) { -- 2.20.1