From patchwork Tue Feb 26 08:52:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10829717 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 982391669 for ; Tue, 26 Feb 2019 08:52:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 839452A8E0 for ; Tue, 26 Feb 2019 08:52:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73CB92A8E4; Tue, 26 Feb 2019 08:52:43 +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 F293D2A8E0 for ; Tue, 26 Feb 2019 08:52:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726240AbfBZIwm (ORCPT ); Tue, 26 Feb 2019 03:52:42 -0500 Received: from mail-eopbgr760052.outbound.protection.outlook.com ([40.107.76.52]:47971 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725977AbfBZIwm (ORCPT ); Tue, 26 Feb 2019 03:52:42 -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=VnitshmmZCJzpV2ajxCWw+fbzoFstbnKan1cE0Al48c=; b=MMmVhB8odzbCROT34l6m97Mf1lRFedVUMb0dsMTbbuRdyAbAMQwIY5wCOV/Jy0LDjVZC/QvotIZ2ddVFK7quawzfdAg1xve9eO5ptJ3P0rMP/OXxSXmMiVpVP91BBdlqdH97BILHuO7ZMedpSX9TGa7aSpUfJRTodGJHU9jdUAA= Received: from BYAPR03CA0009.namprd03.prod.outlook.com (2603:10b6:a02:a8::22) by BN6PR03MB3057.namprd03.prod.outlook.com (2603:10b6:405:3c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.16; Tue, 26 Feb 2019 08:52:39 +0000 Received: from BL2NAM02FT051.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::203) by BYAPR03CA0009.outlook.office365.com (2603:10b6:a02:a8::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.15 via Frontend Transport; Tue, 26 Feb 2019 08:52:38 +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 BL2NAM02FT051.mail.protection.outlook.com (10.152.76.181) 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 08:52:38 +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 x1Q8qc0l021182 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Tue, 26 Feb 2019 00:52:38 -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 03:52:37 -0500 From: Alexandru Ardelean To: , CC: Alexandru Ardelean Subject: [V2 PATCH] dmaengine: axi-dmac: assign `copy_align` property Date: Tue, 26 Feb 2019 10:52:35 +0200 Message-ID: <20190226085235.28899-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)(54534003)(199004)(189003)(2906002)(106466001)(5660300002)(77096007)(246002)(26005)(8676002)(426003)(110136005)(336012)(305945005)(51416003)(7696005)(186003)(53416004)(8936002)(356004)(7636002)(50226002)(72206003)(36756003)(1076003)(106002)(107886003)(4326008)(478600001)(126002)(16586007)(476003)(486006)(316002)(2616005)(44832011)(47776003)(48376002)(50466002)(81973001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR03MB3057;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: 483e5af1-0a7a-43ed-e668-08d69bc7c2ac 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:BN6PR03MB3057; X-MS-TrafficTypeDiagnostic: BN6PR03MB3057: X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB3057;20:SKwVkrSVM+b9/STWhqdiR+kfvfw3dlJ7a1m11i07KPl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dS0Z61zgCGOcycLWE/+ocJGBbworxuIuYj/9REjr6Q9POEzChZD7lbCgqymLajG4MY30MfQeb+571tbPJa6J3yoIMVCqiC1X6E7mbMIP/zEMKR1Dm6ZA06f+JZhUbO/gzpqZnmGwbcUdzmVaqJyfzboQgTTblMRsH1kbZ1fkB95vTwZqzmvCBlaW16dElPF1A0pcDPsczu84/ioXZVN4925mxHLbRpTEevFIjV+GGDYSAlHCehHdE8i7q1hfWM1GbnvwQecYopMgsnN/LWYJpBLaPgPeZx+1ihatkbnRI3jPhkw1rpwJ3MpknPPiusyP9OxlRSuPaPIw2YDkXklPO8Mn0SxnIh2MLsdvPe1pxPm0ISQEt37NdwQhmYQtQphW+qlx/qzHvw28mq8jHb1swmzd5XooWr8sHSftUNVPx8p03LUHQjevcxqg226me3EAAgGOmol1ta0bXBUNEN2TZd81FqDIzfe9xRSE5owkpzHGxMl2flhvUhurzz7CJALM/XQ== X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: +eWSkWSasnuv67+tzvkOaks2wzYFpo6KRKOEtvbBMdRK8i6COJKjYl7UUCpNC04xDhyP7UDQz6x1bf2JJQSH5gLQ4or1foZ43FPKR6Iyt4Sl4fO4VFoVBAdcaHR14jdeCvkB5CRC3SkpiesRr6kJsVyhBcJE7otJY4klB9OSqqRvUJX5ZItz6+3VOX/2CB880+i6AAycshl1LUmfFVko5kC8Ds7YgcIueL67fhAX4pW4q+fwKYMduAKYsjhBmiv9FacOLDsa45azYC3J9AGe7w1m2WnQeqWfb+fhjgiEX1XkdOT7jJP/TAMreXhpEX74efmOi4vv+g2Z5rJC47thrBMfv2AXuAn8bhJDFUHProkgTvbDK5/ZIaBE8MJMA/oQJMbcDEujC3xmucgFCzgtL1VWbtPdX1u7XuDjPsosNJo= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2019 08:52:38.5471 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 483e5af1-0a7a-43ed-e668-08d69bc7c2ac 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: BN6PR03MB3057 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 --- Changelog v1 -> v2: * re-applied & moved the `copy_align` assignment; apparently it was conflicting with another patch from another series 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 ffc0adc2f6ce..5ec223ff7e1a 100644 --- a/drivers/dma/dma-axi-dmac.c +++ b/drivers/dma/dma-axi-dmac.c @@ -666,6 +666,7 @@ static int axi_dmac_probe(struct platform_device *pdev) dma_dev->dst_addr_widths = BIT(dmac->chan.dest_width); dma_dev->directions = BIT(dmac->chan.direction); dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; + dma_dev->copy_align = (dmac->chan.address_align_mask + 1); INIT_LIST_HEAD(&dma_dev->channels); dmac->chan.vchan.desc_free = axi_dmac_desc_free;