Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752370Ab1BQH0H (ORCPT ); Thu, 17 Feb 2011 02:26:07 -0500 Received: from eu1sys200aog109.obsmtp.com ([207.126.144.127]:36282 "EHLO eu1sys200aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751441Ab1BQH0C (ORCPT ); Thu, 17 Feb 2011 02:26:02 -0500 From: Viresh Kumar To: , Cc: , , , Viresh KUMAR Subject: [PATCH 5/7] dw_dmac: adding support for 64 bit access width for memcpy xfers Date: Thu, 17 Feb 2011 12:54:55 +0530 Message-ID: <2a9a8a4d0fe4793fcdf4418b7e44c4c08a9c4153.1297926678.git.viresh.kumar@st.com> X-Mailer: git-send-email 1.7.2.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1025 Lines: 30 From: Viresh KUMAR Signed-off-by: Viresh Kumar --- drivers/dma/dw_dmac.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 5cc5abf..c40b89f 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -577,7 +577,9 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, * We can be a lot more clever here, but this should take care * of the most common optimization. */ - if (!((src | dest | len) & 3)) + if (!((src | dest | len) & 7)) + src_width = dst_width = 3; + else if (!((src | dest | len) & 3)) src_width = dst_width = 2; else if (!((src | dest | len) & 1)) src_width = dst_width = 1; -- 1.7.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/