linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Cercueil <paul@crapouillou.net>
To: Ulf Hansson <ulf.hansson@linaro.org>, Rob Herring <robh+dt@kernel.org>
Cc: list@opendingux.net, linux-mmc@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-mips@vger.kernel.org, Paul Cercueil <paul@crapouillou.net>
Subject: [PATCH 0/2] mmc: ingenic: Support bi-directional DMA channel
Date: Mon, 20 Dec 2021 19:08:38 +0000	[thread overview]
Message-ID: <20211220190840.108061-1-paul@crapouillou.net> (raw)

Hi Ulf,

This patchset adds support for using a single DMA channel for both RX
and TX operations, instead of using separate DMA channels for each
operation.

As some older Ingenic SoCs offer only a handful of DMA channels,
supporting bi-directional channels allow more hardware to use the
channels that would otherwise be used for the MMC/SD operation.

Note that the Device Tree binding for the DMA controller has been
updated in a (already merged) patchset, so that it accepts a 3 cells
(#dma-cells == 3) instead of just 2. It was merged in the DMA tree, so I
am not sure the autobuilders will like this YAML - but it was checked
without errors.

I also removed the descriptions of the "dmas" property in the YAML, as
they really weren't adding anything and were getting in my way.

There are patches touching the driver file merged in the PM tree (the
ones that use the new PM macros) but I expect no problem here, they
touch different parts of the file.

Cheers,
-Paul

Paul Cercueil (2):
  dt-bindings: mmc: ingenic: Support using bi-directional DMA channel
  mmc: jz4740: Support using a bi-directional DMA channel

 .../devicetree/bindings/mmc/ingenic,mmc.yaml  | 37 ++++++++++++++++---
 drivers/mmc/host/jz4740_mmc.c                 | 19 +++++++++-
 2 files changed, 48 insertions(+), 8 deletions(-)

-- 
2.34.1


             reply	other threads:[~2021-12-20 19:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 19:08 Paul Cercueil [this message]
2021-12-20 19:08 ` [PATCH 1/2] dt-bindings: mmc: ingenic: Support using bi-directional DMA channel Paul Cercueil
2021-12-20 19:08 ` [PATCH 2/2] mmc: jz4740: Support using a " Paul Cercueil
2021-12-21 13:03 ` [PATCH 0/2] mmc: ingenic: Support " Ulf Hansson

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=20211220190840.108061-1-paul@crapouillou.net \
    --to=paul@crapouillou.net \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=list@opendingux.net \
    --cc=robh+dt@kernel.org \
    --cc=ulf.hansson@linaro.org \
    /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;
as well as URLs for NNTP newsgroup(s).