From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E72D3C43334 for ; Fri, 1 Jul 2022 16:38:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229774AbiGAQi2 (ORCPT ); Fri, 1 Jul 2022 12:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiGAQi1 (ORCPT ); Fri, 1 Jul 2022 12:38:27 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6B6B19036; Fri, 1 Jul 2022 09:38:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 99922B830A4; Fri, 1 Jul 2022 16:38:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9678C3411E; Fri, 1 Jul 2022 16:38:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656693504; bh=/qdh/Lo2cMOZZEcNP2UucxtYfU1Sb4pBZ6Z3NUXWdqQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uxzmEqWNvDa9Y6yRZts7Xz7tcAfNhpA9ft/t5uzNUjj4s2EmaJROEQEhJKrO1ccfI 3W60bNFMuDqS+XOylpB8jDPZBLWTGs74wJLoQKuZymXtyg87LgZtKl3QyQm8V7G80I eWHdi+/PH5VjwWX7CqfaZ6S7n8IqVB02N7j1znwRF1y5OXW3dfjkqSDxd6wqluUd4n v/SM3lXK07qh0rvh26qGt0yVhO0fU8C3+sHcQW+dLUAKZP9+bBDKgMLhTHuCOaSWgo X3anBM8lqH1+0E0B/P2W5B8XMHG7QXxJAN0IQqOzAPk6VRcvgUEznXmIpVTmuu6U4X Nd+4IFwe6HQuQ== Date: Fri, 1 Jul 2022 22:08:20 +0530 From: Vinod Koul To: Sascha Hauer Cc: dmaengine@vger.kernel.org, Pengutronix Kernel Team , NXP Linux Team , stable@vger.kernel.org Subject: Re: [PATCH] dmaengine: imx-sdma: only restart cyclic channel when enabled Message-ID: References: <20220617115042.4004062-1-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220617115042.4004062-1-s.hauer@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 17-06-22, 13:50, Sascha Hauer wrote: > An interrupt for a channel might be pending even after struct > dma_device::device_terminate_all has been called. In that case the > recently introduced warning message "restart cyclic channel..." triggers > and the channel will be restarted. This is not desired as the channel > has just been stopped. Only restart the channel when we still have a > descriptor set for it (which will be set to NULL in > sdma_terminate_all()). Applied, thanks -- ~Vinod