From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 36A47325499 for ; Tue, 16 Dec 2025 11:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765883423; cv=none; b=d7yLd1uPq9jCQPoaQuM3BNky6/R5uImSxehfo3t0YvsysMlyLGzaA5PdETat6cMoA85fShIpJYPZw25p7qQFON5IaDmITymZX33Zom+ScXUgl9yX05MrNI7e36UsdY334dAl4e3w7XRjiW1ucYwDNtl8F8O54aexPjKg/0iho5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765883423; c=relaxed/simple; bh=GPn5v6ECMpGz+RtGGw29bhw+BjaX3HOHkO9+4/D4oeE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lgTyHHP0pKUmKFoy/XoLpZJ11CVeGOHv9U2S43IJ4iPlZJzLHdtKxg5xRvvrUaaxisNRHDq9iV67OEJTV49NWm/TDrwDzVO43XW6WdXrFgupVhMO+yK3IazW103MyjFZMiLDzYIjVzCEXEC4xM5Pm2bKBzVDcVI4p63u3Pdynmc= 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=K7YUK0rW; arc=none smtp.client-ip=209.85.216.45 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="K7YUK0rW" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-34b75f7a134so2382593a91.0 for ; Tue, 16 Dec 2025 03:10:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765883420; x=1766488220; 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=Ej3ICkCwAh2kwXUgz8fJWzp7gMYAFkjNFgF5UWgoP2A=; b=K7YUK0rW6kKR2auLU8/BIh2WBDmTOUoGRSLjD/KUU5ljFtopQHicZUxHyg37spP+ZY wk8m70tt9QqeZvauorNQPvBSlBdEe3wW87fWvj4YS1o6nDPIEKbQ4roaU9dNQyQLQRkq C/C45vN88ZEN1UBpNdTT2keAeBgP/3fIjYJfaFMU0PQh0p+9E0Q41cRQxhCjQ+n5eXqb Aj4Sd605kxU4cOFybGlDmfVvSrk1E5n6Nf/7RD2y+dAYuHaAemO5bh/IHmQegRSuWvXO 9lHsU5yZzm60mpYRlUE81cI5QxU9flm2cObstJ4qI2KpHHa1JKfX2Y7adAXMQEXJc5ek 25Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765883420; x=1766488220; 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=Ej3ICkCwAh2kwXUgz8fJWzp7gMYAFkjNFgF5UWgoP2A=; b=pMRPdOd19+jLaReVuo5Oxng/F4WrplP+W1yKshAZueCZ3dANZBafkhBXuATrujcF5f 8YkOdEXQ2tSDePNVi0jGTxzGeKkTtPqPpF8rhLMsYqFGPMgUOnTT+8Yp0wtzpVhpDObL xbvqxI6hHZLiZuiMGfywI7zVWvnpeMJWg7mCwHxcWfRyslaI2F6maaQ0KfiBRorIwDbk 53Cf2SUDpoiqsdGi78eRxJo4ahxJky1pfaorFHETQ+UNEKomnlNcBJUbeNYS2EvsJtMY feLpvdKMyDvd7WZnqQW1pcThLR8ePWM0IWQlUQY8OUDwYGqXEWdNAGnw6Sj8tDXgr/1X qKMw== X-Forwarded-Encrypted: i=1; AJvYcCW2XYdNvw2ZfUeAcqQUT4J15VnB5wSrOZyGuhWXOTreKx06blCSQJ+PEns0bJuUALfh8a/VwNtvL/o=@vger.kernel.org X-Gm-Message-State: AOJu0YybBBL2rs6h9l5sQMahMDKqSSnwaw3VF1C3m2DsTqvvn56feLiE Z6t5XEt7SXni3/rJUppIpSXAMEUHjo0xnvbj53YDMv/crn07vRxio6JO X-Gm-Gg: AY/fxX4OCwAbWg1fDyrjnmABt4+jhEfoWhGH5ysCyHu4snQQ/xgJpWgRApC/riLBOUx IJOBtITV2zloBDv4wyqj+islagc6Ttvc4e/1mM5TtsTKsY1/ZdE2JR7/jsQv0MDKmrgAsYOfjVG zF+z5Lq1WxguGcJi2eTGH253cRiOtIPTWJ8PLzGf8f3cE0SBuI1MKnWBjbXE5PvzWBiQtMG9aPo Wx93FaU1YwBTE+BskOZZ0Ze7sku+j1fgUUPD9Jr2mt9P8rK+Xl4zHIhq9n8KdKY5q7fbj9PB9Z/ IZBGSfMDHaDCRm/vOvOw1jNWqKMx46BVnqsLNZDkBYGoS4QzB/gT5YWC3xSyXBtFEBs9rWrg49/ p9RAnCbYhyy9iAPrX9wA6rjasnAfOC/qpBQHvCW1TXYtBt6QdD4AM/xraN5AJvwoEGaGZc6saja 5xMeI1wf2Hdh6LCkiUj8bo X-Google-Smtp-Source: AGHT+IEn5RsKYSO5hlJJgYZT/9nyqBTv5DdsyrL3E95sfCO8MKdD/gWsaEX+ukrp/NOH0Js4gDXwRw== X-Received: by 2002:a05:7022:3a8e:b0:119:e56b:98c0 with SMTP id a92af1059eb24-11f34c18eddmr9239549c88.39.1765883420209; Tue, 16 Dec 2025 03:10:20 -0800 (PST) Received: from localhost ([2001:19f0:ac00:4eb8:5400:5ff:fe30:7df3]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11f2e2ff624sm53688630c88.12.2025.12.16.03.10.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Dec 2025 03:10:19 -0800 (PST) Date: Tue, 16 Dec 2025 19:09:16 +0800 From: Inochi Amaoto To: "Anton D . Stavinskii" Cc: Eugeniy Paltsev , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Chen Wang , Inochi Amaoto , Alexander Sverdlin , Longbin Li , Ze Huang , 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: dmaengine@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 Anton, Since you have tested this patch before, could you give a Tested-by? Regards, Inochi