Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:58200 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997AbdBZLKy (ORCPT ); Sun, 26 Feb 2017 06:10:54 -0500 Date: Sun, 26 Feb 2017 11:22:46 +0100 From: Greg KH To: Fabio Estevam Cc: stable@vger.kernel.org, nandor.han@ge.com, vinod.koul@intel.com, stefan@agner.ch, alexandre.belloni@free-electrons.com, l.stach@pengutronix.de Subject: Re: [PATCH] dmaengine: imx-sdma - correct the dma transfer residue calculation Message-ID: <20170226102246.GA4749@kroah.com> References: <1488059396-1050-1-git-send-email-festevam@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1488059396-1050-1-git-send-email-festevam@gmail.com> Sender: stable-owner@vger.kernel.org List-ID: On Sat, Feb 25, 2017 at 06:49:56PM -0300, Fabio Estevam wrote: > From: Nandor Han > > commit 85f57752b33cf12f1d583f0c10b752292de00abe upstream. > > The residue calculation was taking in consideration that dma > transaction status will be always retrieved in the dma callback > used to inform that dma transfer is complete. However this is not > the case for all subsystems that use dma. Some subsystems use a > timer to check the dma status periodically. > > Therefore the calculation was updated and residue is calculated > accordingly by a) update the residue calculation taking in > consideration the last used buffer index by using *buf_ptail* variable > and b) chn_real_count (number of bytes transferred) is initialized to > zero, when dma channel is created, to avoid using an uninitialized > value in residue calculation when dma status is checked without > waiting dma complete event. > > Cc: # 4.9.x > Signed-off-by: Nandor Han > Acked-by: Peter Senna Tschudin > Tested-by: Peter Senna Tschudin > Tested-by: Marek Vasut > Signed-off-by: Vinod Koul > --- > drivers/dma/imx-sdma.c | 13 +++++++++---- > 1 file changed, 9 insertions(+), 4 deletions(-) So you want this in the 4.9-stable tree? Why? Can we get an ack from the maintainer and developers of the patch? And why didn't you sign off on it as well? thanks, greg k-h