From patchwork Sat Apr 28 19:57:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 10370331 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 EE5BC6038F for ; Sat, 28 Apr 2018 20:05:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE38128BE7 for ; Sat, 28 Apr 2018 20:05:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFBE629084; Sat, 28 Apr 2018 20:05: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 0075728BE7 for ; Sat, 28 Apr 2018 20:05:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbeD1UFF (ORCPT ); Sat, 28 Apr 2018 16:05:05 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34309 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751151AbeD1UFF (ORCPT ); Sat, 28 Apr 2018 16:05:05 -0400 Received: by mail-pg0-f67.google.com with SMTP id p10-v6so3825266pgn.1 for ; Sat, 28 Apr 2018 13:05:04 -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=A0jcwoooP8baRF2/ofZjJ4eBzZZ91baf5s8C2gVxPkk=; b=Ejr9X65F2jBqvVHUxtTHYiknLaksAN1/5sc+ziE6FsXy+OUxkw70HBdTMAwSoTEVq5 vitGuubY1VDxsygrfNdS1o0d8nW5VjfOyjTqiiqB9K7N0oMpDU3+7pnq77+7djJ5TICM aGDTJFTB/oCzv3j3MSY0BH/co2gEPj89cKuec3ynOlUS47ppPDwI1aXG1RlTxZvkihJt nCs157HGVDAEQ0LJBpUaFfUmPL0QUB1wxTSiGvO4DJGNXWBggH81LANV0MyHoLoLrAdJ 0IAKY7b9b9ziCE2VkWKYKwF6QNuUa+deYYbP3AX7AFDDDO0VO4f9jaVlKkybLo8+BQcy VWVQ== X-Gm-Message-State: ALQs6tABADeCvrO0tI63ZubJHifv3tqydg+G596zoMUmz6mO0Oly1++g JoFsb8Zvip5SHODFhP5eqCe5iZk9W+s= X-Google-Smtp-Source: AB8JxZqTswvteeOhOQaoE6Ja8hZ/a6rKBxAvPvrUJ3uY6rok4irs1BWNw9A6trtcCL+hOgRzS3Z4dQ== X-Received: by 2002:a17:902:4483:: with SMTP id l3-v6mr7061756pld.282.1524945904335; Sat, 28 Apr 2018 13:05:04 -0700 (PDT) Received: from localhost ([207.114.172.147]) by smtp.gmail.com with ESMTPSA id k83sm11461741pfg.153.2018.04.28.13.05.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Apr 2018 13:05:03 -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 v3] dmaengine: axi-dmac: Request IRQ with IRQF_SHARED Date: Sat, 28 Apr 2018 12:57:54 -0700 Message-Id: <20180428195754.3053-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 to enable setups with multiple instances of the core sharing a single IRQ line. This works out since the IRQ 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 v2: - Reworded commit message 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;