From patchwork Sat Feb 22 18:16:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 3702281 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5C38B9F382 for ; Sat, 22 Feb 2014 18:17:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 931792012E for ; Sat, 22 Feb 2014 18:17:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5EBFA20120 for ; Sat, 22 Feb 2014 18:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752477AbaBVSRR (ORCPT ); Sat, 22 Feb 2014 13:17:17 -0500 Received: from fallback4.mail.ru ([94.100.176.42]:55997 "EHLO fallback4.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752463AbaBVSRR (ORCPT ); Sat, 22 Feb 2014 13:17:17 -0500 Received: from smtp43.i.mail.ru (smtp43.i.mail.ru [94.100.177.103]) by fallback4.mail.ru (mPOP.Fallback_MX) with ESMTP id 32EE5140131 for ; Sat, 22 Feb 2014 22:17:15 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=pVs4upaaQadA2FCJFj3SyyhQSQmzZGFGv//a1EqxkeQ=; b=eg/REcZjBKdHGGL+JVMrWU8P42ULz97cudAqvAOoPy1lPnjInQXl56tqHNYdRP3h2X46TeMZ5FulUdjQYVbZ3N6YiZi6wc23rlNfhJ/zDgQU8D2hWUJfHsCI3OqlcC2EL5bHe5KTVD2xeRdJ57BwN5YuDvQA4NmeAGBWmnfCLic=; Received: from [188.134.40.128] (port=57392 helo=shc.zet) by smtp43.i.mail.ru with esmtpa (envelope-from ) id 1WHH8E-0000rk-EV; Sat, 22 Feb 2014 22:16:58 +0400 From: Alexander Shiyan To: dmaengine@vger.kernel.org Cc: Vinod Koul , Dan Williams , Shawn Guo , Sascha Hauer , Alexander Shiyan Subject: [PATCH 1/4] dma: imx-dma: Add a field to the driver's private data to distinguish names of interrupts Date: Sat, 22 Feb 2014 22:16:45 +0400 Message-Id: <1393093008-19667-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.3.2 X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Mras: Ok Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexander Shiyan --- drivers/dma/imx-dma.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 6f9ac20..7ef16e8 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -167,6 +167,7 @@ struct imxdma_channel { u32 ccr_to_device; bool enabled_2d; int slot_2d; + char name[6]; }; enum imx_dma_type { @@ -1111,7 +1112,7 @@ static int __init imxdma_probe(struct platform_device *pdev) } ret = devm_request_irq(&pdev->dev, irq_err, - imxdma_err_handler, 0, "DMA", imxdma); + imxdma_err_handler, 0, "DMAERR", imxdma); if (ret) { dev_warn(imxdma->dev, "Can't register ERRIRQ for DMA\n"); goto err; @@ -1145,8 +1146,10 @@ static int __init imxdma_probe(struct platform_device *pdev) struct imxdma_channel *imxdmac = &imxdma->channel[i]; if (!is_imx1_dma(imxdma)) { + sprintf(imxdmac->name, "DMA%i", i); ret = devm_request_irq(&pdev->dev, irq + i, - dma_irq_handler, 0, "DMA", imxdma); + dma_irq_handler, 0, + imxdmac->name, imxdma); if (ret) { dev_warn(imxdma->dev, "Can't register IRQ %d " "for DMA channel %d\n",