From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387661; b=eNQnuiUAhrpbnlZrlTUh2y8IZVzwQlQuyIe7QuiiTSsEDBOmio4BE3QkEzr6IvnTdBK7 3IrvxiFUqHY9z6qoR5OLsmVQzfS/IWIbYur0aYLH4qUjoPeJxcUhMFQWkZm/LyPthmoEI arZ7LaLbR9B2YGHihLps2RDNsmx+znkZ3kP1TguSovcIHlns73d7Bq69fVuhYYTumpqX0 SrgYHkjYLSjYq+E2MlwyAgEWAZUwqN2vrnKoGheFU8333aPNqq9GwievNoD3lovDUZfn+ Wd5iE1n+cinJir/JR+nsGIrk9mUd41Y8oIVrHUS9AWTYx2Tu4SlAOb5Z6i9UShLoH2w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387661; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=CIf9YEv1k5ECCUmonsYnmPW2qHOh5yVC+/Me8+gtBFY=; b=HKx1ZzZUqtoTczJ8GM8x6xy+zj0Pe67U6sk+8O5ZdYMF41mr+Mn6Ym4vqFUMpG9jbm+X w8KxCOt+d8nwCVwiVDdqt3H3nOE5a08CukgE4X3osF3+MK2bsR4YdtwNLx1FEZlzSu+Bw y0SceDDGhVnWar4wj1PUjfRH1CWP1qv95mjk0ieNwaEkka0lQovZLpqUeejuRYbGalN4W R/r9Xg5v3hZaNFTdZoWRpmh0ULotv4GYr13BOxG5S6YltUyT7dgGis67ZY0KQlcNxEWie FyF4PKvcWzKXcWIk5f6xtle6HG+trZOpX346e9MpsgfSw/+UOl78PwuY9kfdlbdOXJA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=q+ufBiFb; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E2B8606A322; Fri, 4 Dec 2026 12:34:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=q+ufBiFb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 536341F000CE; Fri, 4 Dec 2026 12:34:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387660; bh=CIf9YEv1k5ECCUmonsYnmPW2qHOh5yVC+/Me8+gtBFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=q+ufBiFb1gWgWb6Cgiv+KZLZnfuoqPZCAqMSC9avpLZFNNhKq6XrmAHbdK5QuYUzU ezbv+0RkP3ckTA/vKueDzRHGo3Vgc6EVTAArWMRcYYmZuR+r/7eDJQC3viL1Jf5vTV cznNhGN6YgOH9Eaaqtgptil/uOrwHH2wjIiyig1k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Frank Li , Linus Walleij , Vinod Koul , Sasha Levin Subject: [PATCH 6.1 0337/1059] dmaengine: ste_dma40: Fix physical cyclic capability Date: Fri, 4 Dec 2026 18:57:48 +0900 Message-ID: <20261204100652.998334853@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Linus Walleij [ Upstream commit 11101a8e3e42273a5910a149f6324040b88f4747 ] d40_dmaengine_init() configures dma_both for physical channels that can handle both slave and memcpy transfers. Physical DMA40 channel setup has supported cyclic LLIs since cyclic transfer support was added, but the DMA_CYCLIC capability is set on dma_slave a second time instead of dma_both. Set DMA_CYCLIC on dma_both so d40_ops_init() installs device_prep_dma_cyclic and physical channels advertise cyclic support. Fixes: 0c842b551063 ("dma40: cyclic xfer support") Reviewed-by: Frank Li Assisted-by: LLM Signed-off-by: Linus Walleij Link: https://patch.msgid.link/20260927-dma40-fixes-v7-1-89f595e8851d@kernel.org Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/ste_dma40.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 594b016e76efc..e06f8f0e9c825 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -2885,7 +2885,7 @@ static int __init d40_dmaengine_init(struct d40_base *base, dma_cap_zero(base->dma_both.cap_mask); dma_cap_set(DMA_SLAVE, base->dma_both.cap_mask); dma_cap_set(DMA_MEMCPY, base->dma_both.cap_mask); - dma_cap_set(DMA_CYCLIC, base->dma_slave.cap_mask); + dma_cap_set(DMA_CYCLIC, base->dma_both.cap_mask); d40_ops_init(base, &base->dma_both); err = dmaenginem_async_device_register(&base->dma_both); -- 2.53.0