From patchwork Fri Dec 4 18:44:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 64937 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB4Ik8ds025654 for ; Fri, 4 Dec 2009 18:46:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755778AbZLDSoZ (ORCPT ); Fri, 4 Dec 2009 13:44:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755910AbZLDSoY (ORCPT ); Fri, 4 Dec 2009 13:44:24 -0500 Received: from mail.gmx.net ([213.165.64.20]:54115 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755794AbZLDSoU (ORCPT ); Fri, 4 Dec 2009 13:44:20 -0500 Received: (qmail invoked by alias); 04 Dec 2009 18:44:26 -0000 Received: from p57BD184F.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.24.79] by mail.gmx.net (mp010) with SMTP; 04 Dec 2009 19:44:26 +0100 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX19XYA94cRlXmB2Bx1Y2WuLCBEoT+Smux53Ldt5d1f SgMpCXnrpomesK Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1NGd8z-0002O0-R5; Fri, 04 Dec 2009 19:44:41 +0100 Date: Fri, 4 Dec 2009 19:44:41 +0100 (CET) From: Guennadi Liakhovetski To: linux-kernel@vger.kernel.org cc: Dan Williams , linux-sh@vger.kernel.org Subject: [PATCH 1/5] sh: DMA driver has to specify its alignment requirements In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index b3b065c..f5fae12 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c @@ -677,6 +677,8 @@ static int __init sh_dmae_probe(struct platform_device *pdev) shdev->common.device_is_tx_complete = sh_dmae_is_complete; shdev->common.device_issue_pending = sh_dmae_memcpy_issue_pending; shdev->common.dev = &pdev->dev; + /* Default transfer size of 32 bytes requires 32-byte alignment */ + shdev->common.copy_align = 5; #if defined(CONFIG_CPU_SH4) /* Non Mix IRQ mode SH7722/SH7730 etc... */