Received: by 10.192.165.148 with SMTP id m20csp301602imm; Thu, 26 Apr 2018 22:08:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoBuAg50JzwleMa7o2X5oH5rINesHzesv3EAhC1jrZp/NAKXAz2yBQxYVpSNg3pDwnf/duS X-Received: by 10.98.194.5 with SMTP id l5mr889181pfg.6.1524805680608; Thu, 26 Apr 2018 22:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524805680; cv=none; d=google.com; s=arc-20160816; b=NIbkuB6GFE5Rx8igZ/hO/ItY8SmIeCWgxxWaRiwCZUT1n2nrqfN7Cnz3ilNKnZGnK2 94ZO+1n38TDXzOoMM5mrN7sWpCO3bSSQYycH09U5i5uQKqJHFReyBauzPF7+rcvwions v2j/x16v932tgbaquJnI/YglQvfgj621ZDhIb9eAsZ89+HqQKRzwWr4Zz72jMat+NzrX 8ajaZvlyEobtMbf8CBZiebmjklANZC28/iGDWdRyMRPgLI2g6+zvEX8CVJFH82HTwK+p vf8yJcTsxjn36VGGOt/X8jdHr/pAG43V5ankmdOMWmXUxung0qumQ/BpxyL8NNVsoZZN oK5Q== 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:arc-authentication-results; bh=HuVXjC9Ky6sqYxFuDyb1QqdjDIPvmhmBRzCmODqQMxA=; b=zzQe7ORbgV1Hc3LUQMs7Dk2xOZCSmj04kZ/NQCIxYeUJ+01YH1K9ZG7TukGQ4HDJBi 3fS6tpma2lwkM+/xhjXW7F/DGFo53E1J6mmZcVbnfncaHfs9axsxBAKy+akDVKX4JuHl nk8aWs9FY9UHmpDihZ+vyyg1n4lEqds6NrSs3pMNKJ5vFoPDdj3Yud37z1/95v2hIWf+ FYiugujjovL4w7LIZi5q8gKzbOaYr6lttghQpbvwPgn7FwjSPDnNyLMvQ0j+uxEa4oVm 7cn2zyA6TQzIAlaebxy4+3wir2mTxZ1s1D7qPP8B0UJPyf9IA8/40HigLgUw0Ke6FOUj BOMA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n71si502719pfk.277.2018.04.26.22.07.44; Thu, 26 Apr 2018 22:08:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751524AbeD0FGg (ORCPT + 99 others); Fri, 27 Apr 2018 01:06:36 -0400 Received: from mga12.intel.com ([192.55.52.136]:47403 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750863AbeD0FGe (ORCPT ); Fri, 27 Apr 2018 01:06:34 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Apr 2018 22:06:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,333,1520924400"; d="scan'208";a="36819403" Received: from vkoul-udesk7.iind.intel.com (HELO localhost) ([10.223.84.143]) by orsmga008.jf.intel.com with ESMTP; 26 Apr 2018 22:06:31 -0700 Date: Fri, 27 Apr 2018 10:41:15 +0530 From: Vinod Koul To: Moritz Fischer Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, dan.j.williams@intel.com, lars@metafoo.de Subject: Re: [PATCH v2] dmaengine: axi-dmac: Request IRQ with IRQF_SHARED Message-ID: <20180427051115.GX6014@localhost> References: <20180426174000.12008-1-mdf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180426174000.12008-1-mdf@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 26, 2018 at 10:40:00AM -0700, Moritz Fischer wrote: > Request IRQ with IRQF_SHARED flag. This works since the interrupt > handler already checks if there is an actual IRQ pending and returns > IRQ_NONE otherwise. hmmm what are we trying to fix here? Is your device on a shared line or not? > > Acked-by: Lars-Peter Clausen > Signed-off-by: Moritz Fischer > --- > Changes from v1: > - Added Lars' Acked-by > - Dropped patch [1/2] and changed accordingly > --- > drivers/dma/dma-axi-dmac.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c > index 2419fe524daa..15b2453d2647 100644 > --- a/drivers/dma/dma-axi-dmac.c > +++ b/drivers/dma/dma-axi-dmac.c > @@ -687,7 +687,7 @@ static int axi_dmac_probe(struct platform_device *pdev) > if (ret) > goto err_unregister_device; > > - ret = request_irq(dmac->irq, axi_dmac_interrupt_handler, 0, > + ret = request_irq(dmac->irq, axi_dmac_interrupt_handler, IRQF_SHARED, > dev_name(&pdev->dev), dmac); > if (ret) > goto err_unregister_of; > -- > 2.17.0 > -- ~Vinod