From patchwork Thu Apr 26 17:40:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 10366595 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 2D302601D3 for ; Thu, 26 Apr 2018 17:46:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EDC6204FB for ; Thu, 26 Apr 2018 17:46:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13B5328F95; Thu, 26 Apr 2018 17:46:32 +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 2EE922851B for ; Thu, 26 Apr 2018 17:46:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756840AbeDZRqa (ORCPT ); Thu, 26 Apr 2018 13:46:30 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:43417 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756732AbeDZRqa (ORCPT ); Thu, 26 Apr 2018 13:46:30 -0400 Received: by mail-pg0-f68.google.com with SMTP id f132so16460429pgc.10 for ; Thu, 26 Apr 2018 10:46:29 -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; bh=boq5g3WLmYOULBO7dvAswDPk9yTeIvvXS1qKtjk+tmo=; b=GXCSMaVpRA2k3YAB8ejUUJhx9yM78JZCXPjTJ5x841yPzlcBReiVv2t6oD0is8lx7P Lm9xO2v6HVc+amYW+zYI72cNrQaBsUDByg2quOstwBQu4sNetASfwXC3Qj9/P+hFQYC1 nR32nESCqRRWpiiMyu4fjUXumIWJccmFULYJdYmradNAKeN/dihk5Qb3UKU1+qYch/MD yXTOZg9qDUPEW1OILk2Yh8AJ8LpZB+uLiSA444zuh6WUnGZF6tfafH3w9RE6zF6oim1K hRACO2DpFef0Y3dKwMXbzkjI8qnXGtQ942utOn/isKlzRchl9B1IINfSC9ZY8XCNvycN o74Q== X-Gm-Message-State: ALQs6tAANtYNovOs5pcUVwYHIcQt5BN7XXlNGQBpGMwLewx7pVncKIAE VEQ+I9RQxR2HLmp220uXeP8B/8f3BGs= X-Google-Smtp-Source: AIpwx48AOenzanFMUJ6Bes2XHyGG+SU0rfgyH537IIWHDAJ4FMjSuEZVMsCRbBE49MkpY0iRXdGLTA== X-Received: by 10.167.134.70 with SMTP id a6mr33468243pfo.203.1524764789287; Thu, 26 Apr 2018 10:46:29 -0700 (PDT) Received: from localhost ([207.114.172.147]) by smtp.gmail.com with ESMTPSA id 204sm33244770pgb.67.2018.04.26.10.46.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Apr 2018 10:46:28 -0700 (PDT) From: Moritz Fischer To: linux-kernel@vger.kernel.org Cc: dmaengine@vger.kernel.org, dan.j.williams@intel.com, vinod.koul@intel.com, lars@metafoo.de, Moritz Fischer Subject: [PATCH v2] dmaengine: axi-dmac: Request IRQ with IRQF_SHARED Date: Thu, 26 Apr 2018 10:40:00 -0700 Message-Id: <20180426174000.12008-1-mdf@kernel.org> X-Mailer: git-send-email 2.17.0 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. 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;