From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f41.google.com (mail-dl1-f41.google.com [74.125.82.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5DC63254BC for ; Thu, 15 Jan 2026 23:28:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768519740; cv=none; b=GkasqcVwczFjU6y61gd+BBrdoR6eoFFapstBxIgwyDWUOTVe+2CYJcQl9iB38H9ZG9g6aBLAh9PwApgueVkr6bbRK1H0GXLuAaCqjMIE+nudoHZevfGGNsxm6NlswVMMsV9ACdxbLtSfb+cuCs+B9OYu42RMVMfueIbKJpVDzfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768519740; c=relaxed/simple; bh=txanPurl5++EfE1uW4IYSyRpUU5HE1HGm9IY19TLNDk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pYJsV01vabdWnxLLZtopud6ZpSRLXRh2pSCevGtPYST/mJAj+7l1lcg13LffC8OAVZfIRaEBX8yQQRz7CR9VCkP/UhFZ9NC4ncl9hpwVyiGOcHO2ySJOKDOonyrnbpHNbBL4kviOwavFdYoB2VKX+/17taCnCFj8gKU6Pnw6fbA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FZEeQQgk; arc=none smtp.client-ip=74.125.82.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FZEeQQgk" Received: by mail-dl1-f41.google.com with SMTP id a92af1059eb24-121bf277922so1952306c88.0 for ; Thu, 15 Jan 2026 15:28:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768519737; x=1769124537; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=EE4G2+Ee4dVjEHE+oRCN2fxuWRapI0YlnZyPBEUQyIc=; b=FZEeQQgkDc/a7srTgmW6420Utj0jwLuaffrlAdZ4f2hGOUq+NjU141TtYwSnCMZ8FE rTyII6kuUna96R5YPPirqbGmfUVowJW+9tmNKp231o2SM63S1g9v+Omb0HWtwVZzh0me i0OE/hPyMadJv2OQZ3yRQ5dYpy6c4HDPcY0GF2KWIumMxxCnx6yKxJcF1jUDr5KwlHEQ H+GqOrKha7HDyv9Obc+FsRPl0EsBjifIKr6Ys3fd+7bgE6651D53NWEke81u8UdtR6Vb jZCKlND6RI8AL8B6khUow02Bq5tfjfv+JEu97y56YZzkLIpcqhkIOlzZPmyQraUWL7U6 BFfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768519737; x=1769124537; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EE4G2+Ee4dVjEHE+oRCN2fxuWRapI0YlnZyPBEUQyIc=; b=FHfsSJ5/0szahtLtbaatw80+Wrs9pE5CySDKYQX38UaTWYr/DoTPeTM/2L6QU+yUrc 2dBWdH6JyPdy4coko3KrH1+C70ikF08pATPSR2/AEKbO+UOkUOCVtMxmX3ZdRBwpLlMP hKChK04pseF6zP23Sr6+xG5Hjzm+8iqYTJ+ltZSEdgH3U1+EUVdGjrUoLilIqQJ/aZW9 lIBUkD05feLy/A42lvCrLOgiHB04CPais/eClniBZ4dzKiBdIGZduc5CroozAnP8o8gS GZjfUtd9q3cPO+R+dUs40Ym2IXkXvr/djQuJf3fAnHGc5Ls13auo3CjwmIUPGUjmWEfQ +8hg== X-Forwarded-Encrypted: i=1; AJvYcCXlHy9zYs30sC47Zau597EjxuIYUzpw0sBt3ndSZZKF7evGR1sLeas4ic5S1d1cq32xnrGW8pFYZXzLGE8=@vger.kernel.org X-Gm-Message-State: AOJu0YwvVgD2gio/lW4pCQJk5lr0i4zxaCT3uW7tbYrTW0IbKK/Dxj9w 1LI9HRshmo7AW6PRvp2yZElr6pp9DgWBsn+JRsPp235GdiRd4my9Y+dt X-Gm-Gg: AY/fxX6GNxNxRivL+e47mHjBB04edv1NuoNFDkqy8P7LdXCqbtIqTMt4scJGDfysfmh Km87fXyf7vdmG8S0LTsU9O3D2VnWSaK4EQgj+YL49r2mwN8JsB8BomsChpZhgN/YcqGcHIZbyJ7 2cpQLDm7WYArPd1/Z4QlsSZkT9Xs3iHd/PqhfuMDP/YV6/d/68HAlVmqcd00eP4TFZtVCWZN1Vm 4wPbtlN6rXKNOq+VOazcqYTVfty1up0rydExbotkle0JFM1+v/nFBIPMhBoBTtF3TjelzORCxM2 HpfVJsQKmYQRzW7XT3EkotNLGVZ+rp8RzkSrOyx3AcerxkaGwRv+7WqjSKb7skQJAg7FNATdxUn 7p4kPsgW1WVutkmLefxXetIdLYzDTs1/Kbf50kqWeoPvbqezvcvBPhkDlAGgqHhgQCU2GHYBbIf c8ZiuFDLlUmw== X-Received: by 2002:a05:7022:628c:b0:11d:f440:b757 with SMTP id a92af1059eb24-1244b35ad1emr888785c88.26.1768519737468; Thu, 15 Jan 2026 15:28:57 -0800 (PST) Received: from localhost ([2001:19f0:ac00:4eb8:5400:5ff:fe30:7df3]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1244ac5842csm1005165c88.1.2026.01.15.15.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 15:28:57 -0800 (PST) Date: Fri, 16 Jan 2026 07:28:52 +0800 From: Inochi Amaoto To: Eugeniy Paltsev , Vinod Koul Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Chen Wang , Inochi Amaoto , Alexander Sverdlin , Longbin Li , Ze Huang , "Anton D . Stavinskii" , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, sophgo@lists.linux.dev, Yixun Lan Subject: Re: [PATCH v2 0/3] riscv: sophgo: allow DMA multiplexer set channel number for DMA controller Message-ID: References: <20251214224601.598358-1-inochiama@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251214224601.598358-1-inochiama@gmail.com> On Mon, Dec 15, 2025 at 06:45:57AM +0800, Inochi Amaoto wrote: > As the DMA controller on Sophgo CV1800 series SoC only has 8 channels, > the SoC provides a dma multiplexer to reuse the DMA channel. However, > the dma multiplexer also controlls the DMA interrupt multiplexer, which > means that the dma multiplexer needs to know the channel number. > > Change the DMA phandle args parsing logic so it can use handshake > number as channel number if necessary. > > Change from v1: > 1. rebase to v6.19-rc1 > 2. patch 1: remove a comment placed in wrong place. > 3. patch 2: fix typo in comments. > 4. patch 2: initialize chan as NULL in dw_axi_dma_of_xlate. > > Inochi Amaoto (3): > dt-bindings: dma: snps,dw-axi-dmac: Add CV1800B compatible > dmaengine: dw-axi-dmac: Add support for CV1800B DMA > riscv: dts: sophgo: cv180x: Allow the DMA multiplexer to set channel > number for DMA controller > > .../bindings/dma/snps,dw-axi-dmac.yaml | 1 + > arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +- > .../dma/dw-axi-dmac/dw-axi-dmac-platform.c | 26 ++++++++++++++++--- > drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 + > 4 files changed, 25 insertions(+), 5 deletions(-) > > -- > 2.52.0 > Hi, Vinod Would you have any suggestion on this patch? Or this is OK to merge? Regards, Inochi