From patchwork Tue Feb 26 07:35:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10829607 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 269C91805 for ; Tue, 26 Feb 2019 07:35:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17FB12AA0F for ; Tue, 26 Feb 2019 07:35:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C1C42AA4F; Tue, 26 Feb 2019 07:35:45 +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 A23412AA0F for ; Tue, 26 Feb 2019 07:35:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726547AbfBZHfo (ORCPT ); Tue, 26 Feb 2019 02:35:44 -0500 Received: from mail-eopbgr790044.outbound.protection.outlook.com ([40.107.79.44]:16140 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725940AbfBZHfn (ORCPT ); Tue, 26 Feb 2019 02:35:43 -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=ndUudsK3QzX4hkSafafgUCg4PvkNQgKNX9m8WWutHh4=; b=udm8ovfT/nHJT8fkt33P6j1Dzf7WG/y+2OwGo4hpSEMSKfsmBEXjkXoB8fFkxcYmZBpOQVrWMcwhHRhpSHBg9AjtNr97EealU0DoPWETVmZwNKMWS8CxLa0DESrLns6AuHCeopp8BxQ6DeEXntaFu9moS8Geu9ty9GvbM9/2AGE= Received: from CY1PR03CA0013.namprd03.prod.outlook.com (2603:10b6:600::23) by SN6PR03MB3760.namprd03.prod.outlook.com (2603:10b6:805:69::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.15; Tue, 26 Feb 2019 07:35:41 +0000 Received: from CY1NAM02FT020.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::208) by CY1PR03CA0013.outlook.office365.com (2603:10b6:600::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.14 via Frontend Transport; Tue, 26 Feb 2019 07:35:40 +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 CY1NAM02FT020.mail.protection.outlook.com (10.152.75.191) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1643.11 via Frontend Transport; Tue, 26 Feb 2019 07:35:40 +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 x1Q7ZdcX016685 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Mon, 25 Feb 2019 23:35:39 -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; Tue, 26 Feb 2019 02:35:39 -0500 From: Alexandru Ardelean To: , CC: Dragos Bogdan , Alexandru Ardelean Subject: [V2 PATCH] dmaengine: axi-dmac: report DMA_INTERLEAVE capability Date: Tue, 26 Feb 2019 09:35:32 +0200 Message-ID: <20190226073532.17435-1-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 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)(346002)(376002)(136003)(39860400002)(2980300002)(189003)(199004)(106466001)(106002)(7636002)(26005)(478600001)(72206003)(44832011)(36756003)(51416003)(7696005)(53416004)(107886003)(50226002)(2616005)(336012)(48376002)(50466002)(486006)(426003)(4326008)(476003)(126002)(2906002)(54906003)(110136005)(305945005)(16586007)(186003)(316002)(14444005)(77096007)(1076003)(47776003)(5660300002)(246002)(8676002)(8936002)(356004)(6666004);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR03MB3760;H:nwd2mta2.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8f13a32-2133-4004-e211-08d69bbd022c X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4608103)(4709054)(2017052603328)(7153060);SRVR:SN6PR03MB3760; X-MS-TrafficTypeDiagnostic: SN6PR03MB3760: X-Microsoft-Exchange-Diagnostics: 1;SN6PR03MB3760;20:moZw1e/3JAbeKAHnHxaQN6sMylZbGiZ20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pr4uJSy9wEcuIjjLye2R9SQLBdTA90lkss5IhkNqXWfMw2+npIzTR3g9MQlzR5PI+bTHyDh1WjwTxB4X36q6IEK++vKnG4zYGX7sZLX7K/wuZByRgK9Kn/LZqFo885hu922FJicOp9xcgK7do+nb0j66vV73xP0T2XqfIGHfcHpg9Tty6UaLvb6zFYuw5gu3nAn/zCafaaJbJ71nER+iMadxLUUuKy15lH34/6hZUDGVn+E3AvocfZHgSSGliwLkOp/5L+1l3Nm9x7taNM2fVErkqOScd49baasruMa9AffEhYIuEhSWmxx/EP392mW8UYGZgCh+kje+PmLkSAoUSISuDEm8k8HecnMqpvQtxsUqSl+ii8D8dF5trv2nqYpsb43w9R9B9ByonlsFso9IAa6eosjfKgwRRNnUgslml2KaOJGLx5Ff7zSqy4k6SAO2i6t+z00o+yfTUkfRgzTU3l8wfzzxV03l3Wi1uPrGedONM4oOd+qd+1ZEUscE64zn4UkHHKbeEwrTDJREiwihmVJwQ== X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: 5ssTX/f2lqxe1U4I17EbF1aAf+2df779PvjKfUC19im/TghtYxjK7qxe4G2AOfJ0T0JBgepXqQG1XAKuWe0qHLgSW29ZvZdviarfAfNvzsMm9yB8vYujRRCmixGjhkvV30saRkbeIRxu1XIM+7SU5KrnbGjcjEHnDNfKWYCMFSHwEK/C1+MwT7kCm9dhwmZyEaixoFY/rN8m5gKBsNfUpR9TD8vwLOdOgnATFH0pFyFkEzOfIHTRiWvqXITfQsO96ciesIaOBt7UfxNXZGcoMgZEav2cdYOSFYlzzdJQuLJgbu4W7D0EIgpCd7l8hUDlCLSO4BlKapXyl/JTN6hz8FlqyNGu4WgFQRRP47aycDww57bexhS7bUjdCN4nbODyETlEn3bikw1PRbBk+LomWy8LrZlgD0Cl+HA10slZh+g= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2019 07:35:40.4301 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c8f13a32-2133-4004-e211-08d69bbd022c 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: SN6PR03MB3760 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 The `device_prep_interleaved_dma()` callback is already present since the driver was submitted initially. This change adds the DMA_INTERLEAVE flag to the capability mask of AXI DMAC driver. 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;