From patchwork Fri Feb 15 09:17:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10814407 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0D8D86C2 for ; Fri, 15 Feb 2019 09:18:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C4822EB36 for ; Fri, 15 Feb 2019 09:18:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 904F02EB50; Fri, 15 Feb 2019 09:18:02 +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,DKIM_SIGNED, DKIM_VALID,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 336012EB36 for ; Fri, 15 Feb 2019 09:18:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726045AbfBOJSB (ORCPT ); Fri, 15 Feb 2019 04:18:01 -0500 Received: from mail-eopbgr780080.outbound.protection.outlook.com ([40.107.78.80]:22905 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730432AbfBOJR6 (ORCPT ); Fri, 15 Feb 2019 04:17:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gCRT0kifibJ9FXu2kSxhC1/DdLdce595sQhg0CHDkkI=; b=ZgL0mR9liL4bZ923qqZ2IOkOwDKnrWnIKQ2zTqAddpaO9LJONVUVBOovrPw+XKwjeM9nDPQdYLd8cxBGClR6s3TGkOpnH1rF71lX7CaILcHiUibLXawHCAI/EQWcetUi+1q869nws9Ue8+WQmXlHvQA7WiXbStipS8zGISjkN1M= Received: from BN3PR03CA0097.namprd03.prod.outlook.com (2603:10b6:400:4::15) by BN7PR03MB3745.namprd03.prod.outlook.com (2603:10b6:408:23::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Fri, 15 Feb 2019 09:17:55 +0000 Received: from SN1NAM02FT028.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::202) by BN3PR03CA0097.outlook.office365.com (2603:10b6:400:4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16 via Frontend Transport; Fri, 15 Feb 2019 09:17:55 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.57) smtp.mailfrom=analog.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta2.analog.com; Received: from nwd2mta2.analog.com (137.71.25.57) by SN1NAM02FT028.mail.protection.outlook.com (10.152.72.105) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.10 via Frontend Transport; Fri, 15 Feb 2019 09:17:55 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id x1F9Htk1006443 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Fri, 15 Feb 2019 01:17:55 -0800 Received: from saturn.analog.com (10.50.1.244) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.408.0; Fri, 15 Feb 2019 04:17:54 -0500 From: Alexandru Ardelean To: , CC: Dragos Bogdan , Alexandru Ardelean Subject: [PATCH 2/2] dma: axi-dmac: report DMA_INTERLEAVE capability Date: Fri, 15 Feb 2019 11:17:50 +0200 Message-ID: <20190215091750.28035-2-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190215091750.28035-1-alexandru.ardelean@analog.com> References: <20190215091750.28035-1-alexandru.ardelean@analog.com> MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(39860400002)(346002)(376002)(136003)(2980300002)(199004)(189003)(426003)(126002)(16586007)(47776003)(7636002)(446003)(11346002)(2616005)(476003)(2906002)(54906003)(110136005)(486006)(316002)(336012)(44832011)(4326008)(106466001)(6666004)(356004)(305945005)(36756003)(53416004)(107886003)(14444005)(50226002)(106002)(26005)(77096007)(8936002)(186003)(48376002)(8676002)(246002)(478600001)(72206003)(50466002)(7696005)(1076003)(51416003)(76176011);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR03MB3745;H:nwd2mta2.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: efed5303-9af5-4ebf-1c00-08d69326786b X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4608076)(4709027)(2017052603328)(7153060);SRVR:BN7PR03MB3745; X-MS-TrafficTypeDiagnostic: BN7PR03MB3745: X-Microsoft-Exchange-Diagnostics: 1;BN7PR03MB3745;20:fLGR0pwpU5iMnwymglO7IFWI//JAEfnWO9ut4x6j5pADqd0RRhjDSaw4W5sD3awI5rEFSGD+xIm3niAHtdS82/kGga0IZwPEQoT3zhpXM4d+nqvOrObO1rERONghIdM0zlMdrKOp3UQMFO9ZimwKCFKh9Swl7QFk5I4E3xjEe59hyh9YMNgBSvz/sfNHQUGGzM7JYxDIkDuu/kSOUfiVJVbKnrleDKxHr7f7tlndWXknc5gLySiUR76EwFRHy+654Vznl13+xxbCTmR+d4IYl5JgJS+h6TVbHaeJko3BlsbzwJDy/czhvAbEqVVBxnvwnoKYpaHSaP65ICD4FUP77XIE5sHk8f9eFzDboW32d8qk2KssiRUd9LXnXg5FImySqCSaKip9yl/+Hqo+XV+18xLBxLcAlKJ/oYIF8KxCw7EOIhqA0XplyhHd+4nAxrmhbZoJZq6Bs6vLxWEWG3jq6KZNKT4H4hM/rYZvkXYvDbx3ncUb6O3nQVUk3S+nuZsv X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 09497C15EB X-Microsoft-Exchange-Diagnostics: 1;BN7PR03MB3745;23:0xWednfjyyh8bBv7tiJ5amsxVlkk21ftnrB6RgvUzztRWRQCjDWyNGzUNwBO2xi9gse85zDpNfKUEmyGGqrD8qFovK7UnGwqaQXCzOWfQoHof5UKsI9IYOfNltDcbn4XT+QZPRQyxiAHsUzRRtlSJXLmky8DFSzaKQIWyqyPbMj9WQ3KMfGyfpcu8ULt8roWk3rMHBhHmuho47MKngYHvHOUxkrhZZB9y3mnf4iRzXvr2h4LIKS8WO3xtszaLHHjsnfAWlgJKh4IWnA5xlEEjykc4J9fN6N+CxTid9l4EUW6o6fGzcHrGO9wy8cVB5SWjAzFrRMTjkVYX9evB+604804OSYmqrDB1t/Pr54W7CrCH+i6ZCx8iFZQWwJ3E9QJUSbIYlsMn2mu9+W1qkByL/c9ZdSIkCHNdOTVOcWUGr6Ur4wPmOH2o8FWb6Hw0v9g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jRViMlzUPhiS1y/QYFm67hYFJCnz0= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2019 09:17:55.5474 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: efed5303-9af5-4ebf-1c00-08d69326786b X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB3745 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dragos Bogdan Fixes commit 0e3b67b348b8 ("dmaengine: Add support for the Analog Devices AXI-DMAC DMA controller") The `device_prep_interleaved_dma()` callback is already present since the driver was submitted initially. This change adds the DMA_INTERLEAVE capability to the capability mask of the DMA engine. Signed-off-by: Dragos Bogdan Signed-off-by: Alexandru Ardelean --- drivers/dma/dma-axi-dmac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c index 2c999113b989..b2039e60ae04 100644 --- a/drivers/dma/dma-axi-dmac.c +++ b/drivers/dma/dma-axi-dmac.c @@ -652,6 +652,7 @@ static int axi_dmac_probe(struct platform_device *pdev) dma_dev = &dmac->dma_dev; dma_cap_set(DMA_SLAVE, dma_dev->cap_mask); dma_cap_set(DMA_CYCLIC, dma_dev->cap_mask); + dma_cap_set(DMA_INTERLEAVE, dma_dev->cap_mask); dma_dev->device_free_chan_resources = axi_dmac_free_chan_resources; dma_dev->device_tx_status = dma_cookie_status; dma_dev->device_issue_pending = axi_dmac_issue_pending;