From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: [PATCH] dmaengine: cppi41: More PM runtime fixes Date: Thu, 17 Nov 2016 16:10:04 +0530 Message-ID: <20161117104004.GE2698@localhost> References: <20161116182415.3149-1-tony@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20161116182415.3149-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Tony Lindgren Cc: Dan Williams , Bin Liu , Daniel Mack , Felipe Balbi , George Cherian , Johan Hovold , Peter Ujfalusi , Sekhar Nori , Sebastian Andrzej Siewior , dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-omap@vger.kernel.org On Wed, Nov 16, 2016 at 10:24:15AM -0800, Tony Lindgren wrote: > Fix use of u32 instead of int for checking for negative errors values > as pointed out by Dan Carpenter . > > And while testing the PM runtime error path by randomly returning > failed values in runtime resume, I noticed two more places that need > fixing: > > - If pm_runtime_get_sync() fails in probe, we still need to do > pm_runtime_put_sync() to keep the use count happy. We could call > pm_runtime_put_noidle() on the error path, but we're just going > to call pm_runtime_disable() after that so pm_runtime_put_sync() > will do what we want > > - We should print an error if pm_runtime_get_sync() fails in > cppi41_dma_alloc_chan_resources() so we know where it happens Applied now. Would have been ideal if the patches were split per fix Thanks -- ~Vinod -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html