From patchwork Thu Apr 26 16:12:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 10366275 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 82BA0601D3 for ; Thu, 26 Apr 2018 16:19:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71A4829102 for ; Thu, 26 Apr 2018 16:19:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6534329124; Thu, 26 Apr 2018 16:19:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C4FF29102 for ; Thu, 26 Apr 2018 16:19:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756637AbeDZQSl (ORCPT ); Thu, 26 Apr 2018 12:18:41 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:39342 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756676AbeDZQSj (ORCPT ); Thu, 26 Apr 2018 12:18:39 -0400 Received: by mail-pf0-f194.google.com with SMTP id z9so18790145pfe.6 for ; Thu, 26 Apr 2018 09:18:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kAxYCPiZEAh0Ak4LnXkb5FtX0cyodc1HcitAOlel024=; b=Ii/tMEkNBtgj5jx0Ymhe/3xH8SqLxRIGLo+Pe526ZPCwHZmRhsd+Q/hI7ol3bnm/GL Wieo6Mm/stWv4i4g0q1ADr+Gg7Np/zmjPNDi33SakaOiueGHRiu4uMEQHL/6z6pV7ZGW kooxRacIBd03zvKoX2uOS/kbrTpdpzWdMcbFD3X0XMWrFqaeggzUPM6COMNR1w45/iGN LOZVECS2PfXMXvhIL7kBJVTRa++KVOyQFkV4cOVcMkuXkbxhdKvDycIVieETQh/tZlHe CSZAOXx7WjlJM3Fh9bSt2tNyCBGN0Vs3l40D/H1Tovwyc0Xhfc8/puqnbgn6lN9QhPKD I60Q== X-Gm-Message-State: ALQs6tCYzRWMK6gLiCTv9DGYDNpx0gMbaxzVifeMHp9fxhDXfS+qwJqG ZCHYH1qA54vkWtHKqk22phcBdg== X-Google-Smtp-Source: AIpwx4/k3UOR1trcVMwdcexuhcgQNVaxsXZw1J2XbVfdkHmgc8SqrJ5R6J27hjOH6dIuaeYzCCkqDQ== X-Received: by 10.98.5.196 with SMTP id 187mr32821236pff.151.1524759518929; Thu, 26 Apr 2018 09:18:38 -0700 (PDT) Received: from localhost ([207.114.172.147]) by smtp.gmail.com with ESMTPSA id n7sm35513331pff.149.2018.04.26.09.18.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Apr 2018 09:18:37 -0700 (PDT) From: Moritz Fischer To: linux-kernel@vger.kernel.org Cc: dmaengine@vger.kernel.org, vinod.koul@intel.com, dan.j.williams@intel.com, lars@metafoo.de, Moritz Fischer Subject: [PATCH 2/2] dmaengine: axi-dmac: Request IRQ with IRQF_SHARED Date: Thu, 26 Apr 2018 09:12:39 -0700 Message-Id: <20180426161239.15234-2-mdf@kernel.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180426161239.15234-1-mdf@kernel.org> References: <20180426161239.15234-1-mdf@kernel.org> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Moritz Fischer Acked-by: Lars-Peter Clausen --- 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 75ccedaa96d2..2bd195532882 100644 --- a/drivers/dma/dma-axi-dmac.c +++ b/drivers/dma/dma-axi-dmac.c @@ -688,7 +688,7 @@ static int axi_dmac_probe(struct platform_device *pdev) goto err_unregister_device; ret = devm_request_irq(&pdev->dev, dmac->irq, - axi_dmac_interrupt_handler, 0, + axi_dmac_interrupt_handler, IRQF_SHARED, dev_name(&pdev->dev), dmac); if (ret) goto err_unregister_of;