public inbox for linux-mips@vger.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vkoul@kernel.org>
To: Huacai Chen <chenhuacai@kernel.org>
Cc: Binbin Zhou <zhoubinbin@loongson.cn>,
	Binbin Zhou <zhoubb.aaron@gmail.com>,
	Huacai Chen <chenhuacai@loongson.cn>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Frank Li <Frank.Li@kernel.org>,
	dmaengine@vger.kernel.org, Xuerui Wang <kernel@xen0n.name>,
	loongarch@lists.linux.dev, devicetree@vger.kernel.org,
	Keguang Zhang <keguang.zhang@gmail.com>,
	linux-mips@vger.kernel.org
Subject: Re: [PATCH v3 6/6] dmaengine: loongson: New driver for the Loongson Multi-Channel DMA controller
Date: Mon, 9 Mar 2026 08:10:31 +0100	[thread overview]
Message-ID: <aa5yZ6xSW8yxm9gI@vaman> (raw)
In-Reply-To: <CAAhV-H6G6Zb7P8OpoM78FkfSW2HeLt+9xfbJyU21tdbUa8A=Ww@mail.gmail.com>

On 26-02-26, 16:18, Huacai Chen wrote:
> Hi, Binbin,
> 
> On Wed, Feb 25, 2026 at 3:41 PM Binbin Zhou <zhoubinbin@loongson.cn> wrote:
> >
> > This DMA controller appears in Loongson-2K0300 and Loongson-2K3000.
> >
> > It is a chain multi-channel controller that enables data transfers from
> > memory to memory, device to memory, and memory to device, as well as
> > channel prioritization configurable through the channel configuration
> > registers.
> >
> > In addition, there are slight differences between Loongson-2K0300 and
> > Loongson-2K3000, such as channel register offsets and the number of
> > channels.
> >
> > Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
> > ---
> >  MAINTAINERS                                  |   1 +
> >  drivers/dma/loongson/Kconfig                 |  10 +
> >  drivers/dma/loongson/Makefile                |   1 +
> >  drivers/dma/loongson/loongson2-apb-cmc-dma.c | 729 +++++++++++++++++++
> >  4 files changed, 741 insertions(+)
> >  create mode 100644 drivers/dma/loongson/loongson2-apb-cmc-dma.c
> >
> > diff --git a/MAINTAINERS b/MAINTAINERS
> > index aea29c28d865..af9fbb3b43e2 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -14954,6 +14954,7 @@ L:      dmaengine@vger.kernel.org
> >  S:     Maintained
> >  F:     Documentation/devicetree/bindings/dma/loongson,ls2k0300-dma.yaml
> >  F:     Documentation/devicetree/bindings/dma/loongson,ls2x-apbdma.yaml
> > +F:     drivers/dma/loongson/loongson2-apb-cmc-dma.c
> >  F:     drivers/dma/loongson/loongson2-apb-dma.c
> >
> >  LOONGSON LS2X I2C DRIVER
> > diff --git a/drivers/dma/loongson/Kconfig b/drivers/dma/loongson/Kconfig
> > index 9dbdaef5a59f..4278fbbe8096 100644
> > --- a/drivers/dma/loongson/Kconfig
> > +++ b/drivers/dma/loongson/Kconfig
> > @@ -12,6 +12,16 @@ config LOONGSON1_APB_DMA
> >           This selects support for the APB DMA controller in Loongson1 SoCs,
> >           which is required by Loongson1 NAND and audio support.
> >
> > +config LOONGSON2_APB_CMC_DMA
> > +       tristate "Loongson2 Chain Multi-Channel DMA support"
> > +       select DMA_ENGINE
> > +       select DMA_VIRTUAL_CHANNELS
> > +       help
> > +         Support for the Loongson Chain Multi-Channel DMA controller driver.
> > +         It is discovered on the Loongson-2K chip (Loongson-2K0300/Loongson-2K3000),
> > +         which has 4/8 channels internally, enabling bidirectional data transfer
> > +         between devices and memory.
> Moving this to after LOONGSON2_APB_DMA is a little better.

Yes and we expect these files to be sorted, so this needs to be done

-- 
~Vinod

  reply	other threads:[~2026-03-09  7:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-25  7:40 [PATCH v3 0/6] dmaengine: Add Loongson Multi-Channel DMA controller support Binbin Zhou
2026-02-25  7:40 ` [PATCH v3 1/6] dmaengine: loongson: New directory for Loongson DMA controllers drivers Binbin Zhou
2026-02-25 18:04   ` Frank Li
2026-02-25  7:40 ` [PATCH v3 2/6] dmaengine: loongson: loongson2-apb: Convert to dmaenginem_async_device_register() Binbin Zhou
2026-02-25  7:40 ` [PATCH v3 3/6] dmaengine: loongson: loongson2-apb: Convert to devm_clk_get_enabled() Binbin Zhou
2026-02-25 18:05   ` Frank Li
2026-02-25  7:41 ` [PATCH v3 4/6] dmaengine: loongson: loongson2-apb: Simplify locking with guard() and scoped_guard() Binbin Zhou
2026-02-25 18:06   ` Frank Li
2026-02-25  7:41 ` [PATCH v3 5/6] dt-bindings: dmaengine: Add Loongson Multi-Channel DMA controller Binbin Zhou
2026-03-06  0:52   ` Rob Herring (Arm)
2026-02-25  7:41 ` [PATCH v3 6/6] dmaengine: loongson: New driver for the " Binbin Zhou
2026-02-25 20:00   ` Frank Li
2026-02-26  8:18   ` Huacai Chen
2026-03-09  7:10     ` Vinod Koul [this message]
2026-03-09  8:05       ` Binbin Zhou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aa5yZ6xSW8yxm9gI@vaman \
    --to=vkoul@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=chenhuacai@kernel.org \
    --cc=chenhuacai@loongson.cn \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=keguang.zhang@gmail.com \
    --cc=kernel@xen0n.name \
    --cc=krzk+dt@kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=zhoubb.aaron@gmail.com \
    --cc=zhoubinbin@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox