Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292AbcJKMWC (ORCPT ); Tue, 11 Oct 2016 08:22:02 -0400 Received: from mx0b-00176a03.pphosted.com ([67.231.157.48]:54432 "EHLO mx0a-00176a03.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752355AbcJKMWB (ORCPT ); Tue, 11 Oct 2016 08:22:01 -0400 X-Greylist: delayed 3809 seconds by postgrey-1.27 at vger.kernel.org; Tue, 11 Oct 2016 08:22:00 EDT From: Nandor Han To: Vinod Koul , Dan Williams Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Senna Tschudin , Marek Vasut , Nandor Han Subject: [PATCH 0/1] dmaengine: imx-sdma - fix the dma residue calculation Date: Tue, 11 Oct 2016 14:13:40 +0300 Message-Id: X-Mailer: git-send-email 2.7.4 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-11_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1610110196 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 818 Lines: 19 The patch will correct the calculation of the dma residue taking in consideration that some subsystem can check the dma status without waiting the dma complete event. Affected devices: imx based device using sdma module with cyclic channels. Tested on imx6 and imx53 by playing wav files using `speaker-test`application, part of alsa-utils package, and verify that the sound plays smoothly without interruptions. Verified also the serial communication by transferring data over the serial line using various packet sizes and checked the logs and the serial port status (`cat /proc/tty/driver/IMX-uart`) that no data is lost. Nandor Han (1): dmaengine: imx-sdma - correct the dma transfer residue calculation drivers/dma/imx-sdma.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) -- 2.7.1