From patchwork Tue May 25 10:05:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "stanley.miao" X-Patchwork-Id: 102149 Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4P9vP4D024278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 25 May 2010 09:58:01 GMT Received: from dlep36.itg.ti.com ([157.170.170.91]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o4P9tAMT018734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 25 May 2010 04:55:10 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4P9t9Gh017321; Tue, 25 May 2010 04:55:09 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 71E5980627; Tue, 25 May 2010 04:55:09 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 21CDF80626 for ; Tue, 25 May 2010 04:55:07 -0500 (CDT) Received: from medina.ext.ti.com (localhost [127.0.0.1]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4P9t61i029801 for ; Tue, 25 May 2010 04:55:06 -0500 (CDT) Received: from psmtp.com (na3sys009amx234.postini.com [74.125.149.118]) by medina.ext.ti.com (8.13.7/8.13.7) with SMTP id o4P9t5WV000931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 25 May 2010 04:55:06 -0500 Received: from source ([147.11.1.11]) (using TLSv1) by na3sys009amx234.postini.com ([74.125.148.10]) with SMTP; Tue, 25 May 2010 09:55:06 GMT Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id o4P9t1XE002975; Tue, 25 May 2010 02:55:01 -0700 (PDT) Received: from ism-mail02.corp.ad.wrs.com ([128.224.200.19]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 25 May 2010 02:55:01 -0700 Received: from [128.224.163.169] ([128.224.163.169]) by ism-mail02.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 25 May 2010 11:54:58 +0200 Message-ID: <4BFBA100.4020805@windriver.com> Date: Tue, 25 May 2010 18:05:52 +0800 From: "stanley.miao" User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Kevin Hilman Subject: Re: [PATCH 3/6] davinci: edma: clear events in edma_start() References: <1268841163-5868-1-git-send-email-khilman@deeprootsystems.com> <1268841163-5868-4-git-send-email-khilman@deeprootsystems.com> <4BFA6A22.1000006@windriver.com> <871vd16wic.fsf@deeprootsystems.com> In-Reply-To: <871vd16wic.fsf@deeprootsystems.com> X-OriginalArrivalTime: 25 May 2010 09:54:58.0869 (UTC) FILETIME=[56191E50:01CAFBF0] X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.5000) s cv gt3 gt2 gt1 r p m c X-pstn-addresses: from [db-null] Cc: davinci-linux-open-source@linux.davincidsp.com, Brian Niebuhr , linux-arm-kernel@lists.infradead.org X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 25 May 2010 09:58:09 +0000 (UTC) --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c @@ -359,8 +359,10 @@ static void davinci_spi_dma_rx_callback(unsigned lch, u16 ch_status, void *data) if (ch_status == DMA_COMPLETE) edma_stop(davinci_spi_dma->dma_rx_channel); - else + else { + edma_stop(davinci_spi_dma->dma_rx_channel); edma_clean_channel(davinci_spi_dma->dma_rx_channel); + } complete(&davinci_spi_dma->dma_rx_completion);