From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753639AbcIHBYo (ORCPT ); Wed, 7 Sep 2016 21:24:44 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34439 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751284AbcIHBYf (ORCPT ); Wed, 7 Sep 2016 21:24:35 -0400 From: Nicolin Chen To: vinod.koul@intel.com Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, dan.j.williams@intel.com Subject: [PATCH] dmaengine: dmatest: Apply copy_align to DMA_SG as well Date: Wed, 7 Sep 2016 18:24:28 -0700 Message-Id: <1473297868-26787-1-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DMA_SG is still a type of memory copy operation that should conform the hardware restriction. So this patch just applies the copy_align to DMA_SG as well. Signed-off-by: Nicolin Chen --- drivers/dma/dmatest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index 738fbd1..53e9728 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/dma/dmatest.c @@ -503,11 +503,11 @@ static int dmatest_func(void *data) struct scatterlist rx_sg[src_cnt]; total_tests++; /* honor alignment restrictions */ - if (thread->type == DMA_MEMCPY) + if (thread->type == DMA_MEMCPY || thread->type == DMA_SG) align = dev->copy_align; else if (thread->type == DMA_XOR) align = dev->xor_align; else if (thread->type == DMA_PQ) align = dev->pq_align; -- 2.1.4