From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Linus Walleij <linus.walleij@linaro.org>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Simon Horman <horms@verge.net.au>,
Magnus Damm <magnus.damm@gmail.com>,
Linux MMC List <linux-mmc@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
Chris Paterson <Chris.Paterson2@renesas.com>,
Biju Das <biju.das@bp.renesas.com>
Subject: Re: [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support
Date: Mon, 24 Sep 2018 14:44:37 +0200 [thread overview]
Message-ID: <CAMuHMdX7MJWuPBLH_7fVTD-EyiSiMGVGrv8s_BY55uoURaSoZw@mail.gmail.com> (raw)
In-Reply-To: <20180924122637.GA1661@kunai>
Hi Wolfram,
On Mon, Sep 24, 2018 at 2:26 PM Wolfram Sang <wsa@the-dreams.de> wrote:
> > It seems RZ/G1C has two slighty different types of SD card interfaces:
> > 1. SDHI0 and SDHI2 use SYS-DMAC,
> > 2. SDHI1 can also be used as an MMC interface, and has an internal DMAC.
> >
> > Do we need to distinguish between them using the compatible value, or
> > are there other ways?
>
> Yes, that seems to need an update to our current implementation which is
> per-SoC only. One idea from my side would be to whitelist SYS-DMAC for
> this compatible and then check if dma-properties are present, otherwise
> fall back to internal DMAC?
I'm afraid that won't work, as the "dmas" properties are optional. So you
cannot distinguish between optional properties missing and internal DMA
present.
A dirty hack would be checking the device name for xxxxxxxx.sdhi, like how
whitelisting is implemented in the IPMMU driver.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2018-09-24 12:44 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-21 11:55 [PATCH 0/4] Add SDHI2 support to iwg23s Fabrizio Castro
2018-09-21 11:55 ` [PATCH 1/4] dt-bindings: mmc: renesas_sdhi: Add r8a77470 support Fabrizio Castro
2018-09-22 18:43 ` Wolfram Sang
2018-09-24 9:11 ` Simon Horman
2018-09-24 9:37 ` Geert Uytterhoeven
2018-09-24 12:26 ` Wolfram Sang
2018-09-24 12:44 ` Geert Uytterhoeven [this message]
2018-09-24 18:33 ` Fabrizio Castro
2018-09-25 6:47 ` Geert Uytterhoeven
2018-09-25 7:47 ` Simon Horman
2018-09-25 7:55 ` Geert Uytterhoeven
2018-09-25 8:22 ` Wolfram Sang
2018-09-25 8:28 ` Geert Uytterhoeven
2018-09-25 12:45 ` Fabrizio Castro
2018-09-25 13:03 ` Geert Uytterhoeven
2018-09-25 13:12 ` Fabrizio Castro
2018-09-26 18:08 ` Fabrizio Castro
2018-09-21 11:55 ` [PATCH 2/4] pinctrl: sh-pfc: r8a77470: Add SDHI2 voltage switch Fabrizio Castro
2018-09-22 18:44 ` Wolfram Sang
2018-09-24 9:51 ` Geert Uytterhoeven
2018-09-24 18:36 ` Fabrizio Castro
2018-09-21 11:55 ` [PATCH 3/4] ARM: dts: r8a77470: Add SDHI2 support Fabrizio Castro
2018-09-22 18:44 ` Wolfram Sang
2018-09-24 9:12 ` Simon Horman
2018-09-28 9:31 ` Fabrizio Castro
2018-10-01 13:13 ` Simon Horman
2018-10-01 13:41 ` Fabrizio Castro
2018-09-24 9:16 ` Simon Horman
2018-09-21 11:55 ` [PATCH 4/4] ARM: dts: iwg23s-sbc: Add uSD card support Fabrizio Castro
2018-09-22 18:44 ` Wolfram Sang
2018-09-24 9:13 ` Simon Horman
2018-09-24 9:30 ` Fabrizio Castro
2018-09-24 10:03 ` Geert Uytterhoeven
2018-09-24 15:09 ` Fabrizio Castro
2018-09-24 15:34 ` Simon Horman
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=CAMuHMdX7MJWuPBLH_7fVTD-EyiSiMGVGrv8s_BY55uoURaSoZw@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=Chris.Paterson2@renesas.com \
--cc=biju.das@bp.renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrizio.castro@bp.renesas.com \
--cc=geert+renesas@glider.be \
--cc=horms@verge.net.au \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=wsa+renesas@sang-engineering.com \
--cc=wsa@the-dreams.de \
/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).