From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (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 C7ED533B967 for ; Tue, 16 Dec 2025 11:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765883424; cv=none; b=qM0YCx0t2e/2U1Np7TMjxxGhUX0yLe1udBjqT7HSXRdeUWW5rFuIVFPmgccSvnD1niXxm1s65cDwWsmS3UqLbHm3axlUCc03gndUyahYyINhEHhLNEoUR12zZAV0608Gt5+U+2QWZTUJYEwaVLXqOIIy8JdSODhV1toFK0SrD0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765883424; 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=WzpW50JF+ow4CAE+AyFhoiMXhwZATXfAeDfP0K7GRFZTxrDW4uy2HERYVLCjVCqsTH6Suc9uTFn83pwyb+6BmotClbxz+P7H9d5S/+kErCH9XWGU87kqbh0DToyp578558NcHRPRpZ4AjKkGFRYkwqFURGuqSI23nkjNdVm8uZ0= 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.49 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-f49.google.com with SMTP id 98e67ed59e1d1-34c30f0f12eso2531378a91.1 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=OzTUonc2EqcLCTvD2lrLrnQPbST0k96IqSl6Xkm/P7QHi7w6MfCA6rfpEGXuh242Mc q4CNMbWf+Ooc2ZTjiJLtxBcnhdXqfKLaaDWO1KriXthWRsFeNHlZF8T8AGSXmKbrbyfg dfe2gF1e3YcdMTogB4QJjnU7CddhFbQ/stZf+RJDq3yfvBklpCde2G/WpFmfnWBlj13K 6IGvsUwuOhZHkW6za9A3e11CIRDfUtM9Guj/dOasRl8o6VhA2XZjJVVWiG+o7uuA1I+Q 0SD0b5AkkFhZ/upIGHCCvvT5iWrDn9j0xNpK8PE+AYfQAlotRYiHJjqd59yu+K8oPV/m JlYA== X-Forwarded-Encrypted: i=1; AJvYcCXMBVZo9x84i8Azarsccwtmw0Dgk4j6ZxJhvsOnTHZSU6eHb7oFVGes8v0B2jlyMb9mwVZjTG2WJKB+o4s=@vger.kernel.org X-Gm-Message-State: AOJu0YyCFpaN+MQDquNRuqYjJljQWvsK8SHnvgD2tOcfowNjW/NfKGgj vGK9Mu/csKBQNQ2ZaUCIsOKTpJ/ok38igT4mEmpy4hbRXtMc+D4plyFB X-Gm-Gg: AY/fxX7uqnjcrls/90mt5K/RqactZYSkdEHk2cFDz24XIHhdfABiWv7FHAgyG4LEbkp 5ARe3BaEh2VHbfbrY8YKYtrygoKnZWZD7GsBG4IJGtmnFBR2bfIQz401uVBbaA5mQD/3Lz9P8fB 19PIuwuUQ1dBII1fC/vOm+pnYednvCeahVw9dKtRySa7+dszGE3+NvvWPFgyS77O85iV8n/BWDT dHQdwmc6zqX+mBTWkx9bncpdTm0h3bitwTbTk+mvXThkRaqpqS8vOGTAGg/ORkZj93I65x7PXw2 W5Cm0XFXoX3fcK98/yVcSVPhgTFD/mj/bENbNRfYC4Us2qTnaO72rQPpv0WOxnPqY4UazBCbaBJ fQ6CaGtm5oJb2Wiufj61dPfGgjaUVoEM6Kvm/aznBRp+dOVw487ApSWoLWRhkqZ1eImoYfK+8yb vOmYtOE82nc2YtzVHL/khU 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: 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 Anton, Since you have tested this patch before, could you give a Tested-by? Regards, Inochi