From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH 09/11] dmaengine: cppi41: Fix a race between PM runtime and channel abort Date: Tue, 10 Jan 2017 20:55:32 +0300 Message-ID: <0a79aade-ff5d-d449-5dc5-b81491c96fd0@cogentembedded.com> References: <20170109160656.3470-1-abailon@baylibre.com> <20170109160656.3470-10-abailon@baylibre.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170109160656.3470-10-abailon-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alexandre Bailon , vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Cc: dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, nsekhar-l0cyMroinI0@public.gmane.org, khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org, ptitiano-rdvid1DuHRBWk0Htik3J/w@public.gmane.org, tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, b-liu-l0cyMroinI0@public.gmane.org List-Id: devicetree@vger.kernel.org On 01/09/2017 07:06 PM, Alexandre Bailon wrote: > cppi41_dma_issue_pending() may be called while the device is runtime > suspended. In that case, the descritpor will be push to the pending "Descriptor" and "pushed". > list and then be queued to hardware queue. > But if cppi41_stop_chan() is called before the device got time to > resume, then the descriptor will remain in the pending list and be > queued to hardware queue after the teardown. > During the channel stop, check if there is a pendding descriptor Pending. > and if so, remove it. > > Signed-off-by: Alexandre Bailon [...] MBR, Sergei -- 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