Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758675AbcLAM43 (ORCPT ); Thu, 1 Dec 2016 07:56:29 -0500 Received: from smtpout.microchip.com ([198.175.253.82]:44846 "EHLO email.microchip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758533AbcLAM41 (ORCPT ); Thu, 1 Dec 2016 07:56:27 -0500 Date: Thu, 1 Dec 2016 13:56:24 +0100 From: Ludovic Desroches To: Alexandre Belloni CC: Ludovic Desroches , Vinod Koul , , , Subject: Re: [PATCH] dmaengine: at_xdmac: don't restore unsaved status Message-ID: <20161201125624.4sno2gwt6dnwucv2@rfolt0960.corp.atmel.com> Mail-Followup-To: Alexandre Belloni , Vinod Koul , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org References: <20161201104903.30019-1-alexandre.belloni@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161201104903.30019-1-alexandre.belloni@free-electrons.com> User-Agent: NeoMutt/20161104 (1.7.1) X-Brightmail-Tracker: H4sIAAAAAAAAC+NgFlrGqsTGxcLF5cOi+0vWIcLg6bUlbewWX5uMLe592sZo8fLNDxaLB+87WRxYAhiiWDPzkvIrElgz7q6cylawmqvi8Nr/7A2Mmzm6GLk4hAQWMEpc+nqAvYuRg4NFQEVizk/xLkZODjYBU4lHC/qYQWwRARuJzp132UDqmQV2M0o8er6dBSQhLOAm8WvWMkYQmxfIPr3rChOEfYlR4smKABBbSMBTYsfxXWwQcUGJkzOfgPUyC+hILNj9iQ1kL7OAtMTyfxwgYU4BL4lPx2+wgtiiQOc8O/2eHWKMhsTr6VvBxksIBEpM3d3ABmE7SXSdnAhl20kcnn6RHcJ2kNi+6wsLTM2uz5eZIWxtie2v9rFC2DoS2w72Q9XYSuyZMRFqvrvEg0fLoWxfiVkPG6BqoiQanz1kmsAoNQvJN7OQfDML4ZsFjMyrGKWdPfx0g8N0XSOcPQxM9HKTMwp0cxMz8/SS83M3MULiMHMH47EG/0OMkhxMSqK8WyedDxfiS8pPqcxILM6ILyrNSS0+xCjBwaMkwmu5HCjHW1yQmFucmQ6TkuHgUJLgjQBJCRalpqdWpGXmlKQWQaRPMUpKifNGgyQFQPoySvPgcpcYRaWEeaOWAuV4ClKLcjNLIOK3GIU5HjIJseTl56VKAZ3IAAQajK8YxTkYlYR53UFm8WTmlcCd8AroOiag69btPg1yXUkiQkqqgbHGw9ZlnnHP4zk5+19xBBZm5dtW9/I5BmWa3wisvLhOfS1PdbHs8b0KxrdXdmU9FHDomR7Yxd+xyfBQIutswwmH2J60b8sX2mPc6CHH8oBHdcPrk7LBq5Qnq2VfZtxgnH4m+P0Cth/KK/90HPJ14Ft8ZuXtz7YxFY0HO74HHlGe/EktY4+9iBJLcUaioRZzUXEiAEZc7JQ5AwAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1285 Lines: 38 On Thu, Dec 01, 2016 at 11:49:03AM +0100, Alexandre Belloni wrote: > save_gs is supposed to save the channel status in order to be restored at > resume time but it is never updated and is always 0. Anyway, the channel > status is updated in the per channel loop later in the resume function. > > Signed-off-by: Alexandre Belloni Acked-by: Ludovic Desroches Thanks > --- > drivers/dma/at_xdmac.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c > index b7d7f2d443a1..8c1abb794340 100644 > --- a/drivers/dma/at_xdmac.c > +++ b/drivers/dma/at_xdmac.c > @@ -221,7 +221,6 @@ struct at_xdmac { > int irq; > struct clk *clk; > u32 save_gim; > - u32 save_gs; > struct dma_pool *at_xdmac_desc_pool; > struct at_xdmac_chan chan[0]; > }; > @@ -1896,7 +1895,6 @@ static int atmel_xdmac_resume(struct device *dev) > } > > at_xdmac_write(atxdmac, AT_XDMAC_GIE, atxdmac->save_gim); > - at_xdmac_write(atxdmac, AT_XDMAC_GE, atxdmac->save_gs); > list_for_each_entry_safe(chan, _chan, &atxdmac->dma.channels, device_node) { > atchan = to_at_xdmac_chan(chan); > at_xdmac_chan_write(atchan, AT_XDMAC_CC, atchan->save_cc); > -- > 2.10.2 >