From patchwork Fri Feb 15 11:02:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10814521 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 867EF6C2 for ; Fri, 15 Feb 2019 11:02:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C99F2EDE7 for ; Fri, 15 Feb 2019 11:02:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A7252EDA4; Fri, 15 Feb 2019 11:02:35 +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 EAF452ED9B for ; Fri, 15 Feb 2019 11:02:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393887AbfBOLCe (ORCPT ); Fri, 15 Feb 2019 06:02:34 -0500 Received: from mail-eopbgr790048.outbound.protection.outlook.com ([40.107.79.48]:35088 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726160AbfBOLCe (ORCPT ); Fri, 15 Feb 2019 06:02:34 -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=GoW++28LK0Lbv5MEHNVmmnWlY9MB3njnXePpy5xMXSg=; b=GuzRMcj//2hb9rUw78yNxis08gcNEuDmAx5fYchd5vKgtKg21tB1hfW8TJDTgFWYMYW/7BMS/2eugfWfCtoh3z0TVZCCUtuyKd3R29IJi8Z0mHp5KUionM3OD3XxcP2ZFPs0Xf2yTfEhNNBhpUQvCfRJ87wJO6yJuDyne8zf3Bw= Received: from CY4PR03CA0024.namprd03.prod.outlook.com (2603:10b6:903:33::34) by DM5PR03MB3067.namprd03.prod.outlook.com (2603:10b6:4:3c::12) 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 11:02:31 +0000 Received: from BL2NAM02FT035.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::208) by CY4PR03CA0024.outlook.office365.com (2603:10b6:903:33::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1622.16 via Frontend Transport; Fri, 15 Feb 2019 11:02:31 +0000 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 BL2NAM02FT035.mail.protection.outlook.com (10.152.77.157) 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 11:02:29 +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 x1FB2TPb029025 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Fri, 15 Feb 2019 03:02:29 -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 06:02:28 -0500 From: Alexandru Ardelean To: , CC: Alexandru Ardelean Subject: [PATCH] dma: axi-dmac: assign `copy_align` property Date: Fri, 15 Feb 2019 13:02:26 +0200 Message-ID: <20190215110226.30647-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)(136003)(376002)(346002)(39860400002)(396003)(2980300002)(189003)(199004)(110136005)(7696005)(305945005)(50466002)(50226002)(51416003)(2906002)(48376002)(106002)(53416004)(36756003)(106466001)(316002)(8936002)(7636002)(16586007)(8676002)(186003)(77096007)(478600001)(246002)(26005)(72206003)(6346003)(4744005)(126002)(486006)(336012)(1076003)(47776003)(4326008)(44832011)(476003)(107886003)(356004)(426003)(2616005)(81973001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR03MB3067;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: f67b2ffc-e161-4e0e-fc25-08d693351481 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:DM5PR03MB3067; X-MS-TrafficTypeDiagnostic: DM5PR03MB3067: X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB3067;20:XXwTPY3DHtr2x2ONK+mf20PWPWrKGTWSWyj+Djp+toQSpbIVm2tpbDKkvtx588MfG+C68isNzz/hWx+08iDlf94Ky9J1g9lZ6Xs3EQHk+jvWzcT7iktKgT4MDEPGrwlwxZekuzTQA7UQFLolid9QTLQ3/h/+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mgwohm9aEpOhA7NPFwKUkwfFx2TxLj0qtCb2nPgbX6c1lKP1VDfYMECAJ6cThXiiLcK6qI3Cf/kPr2FimiP/LHi7CkwFiU74i2nwMzN4rctytA7yrQsUbcDqsmNuA4kxDlyD68tqT1JS6oHGDsKbGvghhgYRGuDDYkDFjH0iYb49+/h9tZKx9l4U1BqIvguC0GcQJuhNchCzxd0s+VmHi0MNELQxpnXClvc8oAr0IEd9baQ32UQ8JdViulOp/PBhA9/ny7pdv0UQjrPVXFuC44ihaDzfgSp6DQXM80Pfo5sDO+9+q4E3X4ysQAlOfSWZkwM1RSQ/KwcglR7nxAGzuE30iKByyE/jxmoIpZxMioVL+GMM432Amiicc0cczRt X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: kpPqel7zExfotago2fHsNRNk4Ja61gvrKn2oUnzASkOfNFHRIZRBZUan+kbO4dXMe0P0OBXHJXjOoXEkpea3o3b00ySyoXAUX0u4uWLGyDarDv11I7ZRhZDCcXHFJByCFGQn4NMl5pq8i7gfL6DF1nNCDVyqPb4FCxQt/dLFVYg+F3o1bogpub2ci0GTreKRz+t9Hj7QkPv6RxGugArtMIDZjDkLkK651ChzMo/PO+HNfxpiueGrf1nGQyEyO2m2/EfX2rUcf7TUmFkr1omUeYfzm6Geaia1RvjoCZdhnlfQK0aGqDIKoo2ryP2iyZD4aLkfjlYZpy63k+QAqtuel5DJTkdtCw8V8gvbi3p2eBJlYugf+cjgfgCGxykTC9hJZxB3a55f8SjNspkHbh5v557lx45qfUA8LoVXGlZNEQY= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2019 11:02:29.8350 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f67b2ffc-e161-4e0e-fc25-08d693351481 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: DM5PR03MB3067 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The `copy_align` property is a generic property that describes alignment for DMA memcpy & sg ops. It serves mostly an informational purpose, and can be used in DMA tests, to pass the info to know what alignment to expect. Signed-off-by: Alexandru Ardelean --- drivers/dma/dma-axi-dmac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c index a54157ab00b2..a58aee7090dd 100644 --- a/drivers/dma/dma-axi-dmac.c +++ b/drivers/dma/dma-axi-dmac.c @@ -814,6 +814,8 @@ static int axi_dmac_probe(struct platform_device *pdev) if (ret) goto err_clk_disable; + dma_dev->copy_align = (dmac->chan.address_align_mask + 1); + axi_dmac_write(dmac, AXI_DMAC_REG_IRQ_MASK, 0x00); ret = dma_async_device_register(dma_dev);