From patchwork Wed Jun 15 06:14:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 881112 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5F6ED4l019244 for ; Wed, 15 Jun 2011 06:14:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751466Ab1FOGON (ORCPT ); Wed, 15 Jun 2011 02:14:13 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:54766 "EHLO relmlor4.renesas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947Ab1FOGON (ORCPT ); Wed, 15 Jun 2011 02:14:13 -0400 Received: from relmlir4.idc.renesas.com ([10.200.68.154]) by relmlor4.idc.renesas.com ( SJSMS) with ESMTP id <0LMT00HE3INOZA90@relmlor4.idc.renesas.com> for linux-sh@vger.kernel.org; Wed, 15 Jun 2011 15:14:12 +0900 (JST) Received: from relmlac2.idc.renesas.com ([10.200.69.22]) by relmlir4.idc.renesas.com ( SJSMS) with ESMTP id <0LMT003LLINOSGB0@relmlir4.idc.renesas.com> for linux-sh@vger.kernel.org; Wed, 15 Jun 2011 15:14:12 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 3C02E70001; Wed, 15 Jun 2011 15:14:12 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 302AA78002; Wed, 15 Jun 2011 15:14:12 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id RAG20503; Wed, 15 Jun 2011 15:14:12 +0900 Date: Wed, 15 Jun 2011 15:14:11 +0900 X-IronPort-AV: E=Sophos; i="4.65,369,1304262000"; d="scan'208"; a="32184417" Received: from unknown (HELO PG10870.renesas.com) ([172.30.8.159]) by relmlii2.idc.renesas.com with ESMTP; Wed, 15 Jun 2011 15:14:11 +0900 Message-id: To: Paul Mundt Cc: Magnus , Linux-SH , Guennadi , Kuninori Morimoto In-reply-to: References: From: Kuninori Morimoto Subject: [PATCH 4/5] dmaengine: shdma: tidyup parameter change method on dmae_start User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-2022-JP-2?B?U2Fuag==?= =?ISO-2022-JP-2?B?GyQoRCtXGyhC?=) APEL/10.6 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 15 Jun 2011 06:14:14 +0000 (UTC) Signed-off-by: Kuninori Morimoto --- drivers/dma/shdma.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index f7b3c06..19fd18d 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c @@ -169,8 +169,9 @@ static void dmae_start(struct sh_dmae_chan *sh_chan) { u32 chcr = sh_dmae_readl(sh_chan, CHCR); + chcr &= ~CHCR_TE; chcr |= CHCR_DE | CHCR_IE; - sh_dmae_writel(sh_chan, chcr & ~CHCR_TE, CHCR); + sh_dmae_writel(sh_chan, chcr, CHCR); } static void dmae_halt(struct sh_dmae_chan *sh_chan)