Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751437AbaGYERA (ORCPT ); Fri, 25 Jul 2014 00:17:00 -0400 Received: from mail-by2lp0243.outbound.protection.outlook.com ([207.46.163.243]:11535 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750859AbaGYEQ6 (ORCPT ); Fri, 25 Jul 2014 00:16:58 -0400 From: Nicolin Chen To: CC: , , , , , , , , , , , , , , , , , , Subject: [PATCH v3 1/2] ARM: imx: Add the secondary request into the structure for imx-sdma Date: Fri, 25 Jul 2014 12:03:58 +0800 Message-ID: X-Mailer: git-send-email 1.8.4 In-Reply-To: References: X-EOPAttributedMessage: 0 X-Matching-Connectors: 130507345046617152;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:CAL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(6009001)(189002)(199002)(97736001)(26826002)(55446002)(92566001)(92726001)(89996001)(87936001)(105596002)(85852003)(83072002)(229853001)(107046002)(110136001)(104016003)(88136002)(2351001)(33646002)(73392001)(68736004)(102836001)(575784001)(86362001)(93916002)(19580395003)(104166001)(46102001)(19580405001)(77156001)(50466002)(82202001)(76176999)(50986999)(62966002)(21056001)(81342001)(61266001)(47776003)(81442001)(36756003)(4396001)(50226001)(73972005)(80022001)(64706001)(81542001)(48376002)(20776003)(99396002)(77982001)(87572001)(95666004)(85306003)(6806004)(44976005)(106466001)(87286001)(84676001)(79102001)(74502001)(74662001)(31966008);DIR:OUT;SFP:;SCL:1;SRVR:BLUPR03MB360;H:tx30smr01.am.freescale.net;FPR:;MLV:ovrnspm;PTR:InfoDomainNonexistent;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02830F0362 Authentication-Results: spf=softfail (sender IP is 192.88.168.50) smtp.mailfrom=nicoleotsuka@gmail.com; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SDMA supports device to device (per_2_per) scripts to handle DMA transfering between two peripheral devices. The per_2_per script, however, needs two dma requests from two sides while the current structure only defined one request. So this patch just simply adds the secondary request so as to let SDMA and its user to add its implementation later. [ Both change in the SDMA driver and its users like Freescale ASRC ASoC driver should be taken along with this change in order to truly support per_2_per sciprts. However, we here make an expediency by adding this first so that we can add either side later since this patch won't break any function and meanwhile it can make merge window more smoothly: we don't need to apply the change inside dmaengine branch via ASoC tree any more. -- Nicolin ] Signed-off-by: Nicolin Chen Acked-by: Shawn Guo --- include/linux/platform_data/dma-imx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/platform_data/dma-imx.h b/include/linux/platform_data/dma-imx.h index 7aa0e89..6a1357d 100644 --- a/include/linux/platform_data/dma-imx.h +++ b/include/linux/platform_data/dma-imx.h @@ -51,6 +51,7 @@ enum imx_dma_prio { struct imx_dma_data { int dma_request; /* DMA request line */ + int dma_request2; /* secondary DMA request line */ enum sdma_peripheral_type peripheral_type; int priority; }; -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/