Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932625AbbHGQgJ (ORCPT ); Fri, 7 Aug 2015 12:36:09 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:42599 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932542AbbHGQgF (ORCPT ); Fri, 7 Aug 2015 12:36:05 -0400 Date: Fri, 7 Aug 2015 17:35:53 +0100 From: Russell King - ARM Linux To: Sebastian Andrzej Siewior Cc: Peter Hurley , Peter Ujfalusi , Vinod Koul , Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, nsekhar@ti.com, linux-omap@vger.kernel.org, linux-serial@vger.kernel.org, john.ogness@linutronix.de, Greg KH Subject: Re: [PATCH] dma: omap-dma: add support for pause of non-cyclic transfers Message-ID: <20150807163553.GT7576@n2100.arm.linux.org.uk> References: <1438936917-7254-1-git-send-email-bigeasy@linutronix.de> <55C47DE1.9020902@ti.com> <55C48A1E.3070007@linutronix.de> <20150807132241.GN7576@n2100.arm.linux.org.uk> <55C4B5AE.10309@linutronix.de> <20150807135727.GP7576@n2100.arm.linux.org.uk> <55C4CA00.3060206@hurleysoftware.com> <20150807152939.GQ7576@n2100.arm.linux.org.uk> <55C4D7AF.8060305@hurleysoftware.com> <55C4DADC.9070004@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55C4DADC.9070004@linutronix.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1468 Lines: 33 On Fri, Aug 07, 2015 at 06:20:44PM +0200, Sebastian Andrzej Siewior wrote: > On 08/07/2015 06:07 PM, Peter Hurley wrote: > >> If we look at what 8250-dma.c is doing: > >> > >> if (dma->rx_running) { > >> dmaengine_pause(dma->rxchan); > >> > >> It's 8250-dma.c which is silently _ignoring_ the return code, failing > >> to check that the operation it requested worked. Maybe this should be > >> WARN_ON(dmaengine_pause(dma->rxchan)) or at least it should print a > >> message? > > > > Thanks for the suggestion; I'll hold on to that and push it after we add > > the 8250 omap dma pause in mainline. > > I have a patch ready with WARN_ON_ONCE() for 8250-omap and 8250-dma. > This warning would trigger on am335x/edma until v4.2-rc1 and omap-dma > based version is open. I could post it if you want me to. > Besides that those two, there are four other drivers ignoring the > return code dmaengine_pause(). It'll probably be a good idea if those are fixed too, and also have a __must_check annotation on the declaration of dmaengine_pause() to prevent future mishaps like this. -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/