From: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
Wolfram Sang <wsa+renesas@sang-engineering.com>
Subject: Re: [PATCH] mmc: renesas_sdhi: remove whitelist for internal DMAC
Date: Wed, 4 Dec 2019 18:59:33 +0100 [thread overview]
Message-ID: <20191204175933.GD28879@bigcity.dyn.berto.se> (raw)
In-Reply-To: <20191203194859.917-1-wsa@the-dreams.de>
Hi Wolfram,
Thanks for your work.
On 2019-12-03 20:48:59 +0100, Wolfram Sang wrote:
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
>
> We know now that there won't be Gen3 SoCs with both, SYS-DMAC and
> internal DMAC. We removed the blacklisting for SYS-DMAC already, so we
> can remove the whitelisting for internal DMAC, too. This makes adding
> new SoCs easier. We keep the quirk handling, of course.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> ---
> drivers/mmc/host/renesas_sdhi_internal_dmac.c | 23 ++++---------------
> 1 file changed, 4 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/mmc/host/renesas_sdhi_internal_dmac.c b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
> index 68fb39a74b8b..47ac53e91241 100644
> --- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c
> +++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
> @@ -298,38 +298,23 @@ static const struct tmio_mmc_dma_ops renesas_sdhi_internal_dmac_dma_ops = {
> * Whitelist of specific R-Car Gen3 SoC ES versions to use this DMAC
> * implementation as others may use a different implementation.
> */
> -static const struct soc_device_attribute soc_whitelist[] = {
> - /* specific ones */
> +static const struct soc_device_attribute soc_dma_quirks[] = {
> { .soc_id = "r7s9210",
> .data = (void *)BIT(SDHI_INTERNAL_DMAC_ADDR_MODE_FIXED_ONLY) },
> { .soc_id = "r8a7795", .revision = "ES1.*",
> .data = (void *)BIT(SDHI_INTERNAL_DMAC_ONE_RX_ONLY) },
> { .soc_id = "r8a7796", .revision = "ES1.0",
> .data = (void *)BIT(SDHI_INTERNAL_DMAC_ONE_RX_ONLY) },
> - /* generic ones */
> - { .soc_id = "r8a774a1" },
> - { .soc_id = "r8a774b1" },
> - { .soc_id = "r8a774c0" },
> - { .soc_id = "r8a77470" },
> - { .soc_id = "r8a7795" },
> - { .soc_id = "r8a7796" },
> - { .soc_id = "r8a77965" },
> - { .soc_id = "r8a77970" },
> - { .soc_id = "r8a77980" },
> - { .soc_id = "r8a77990" },
> - { .soc_id = "r8a77995" },
> { /* sentinel */ }
> };
>
> static int renesas_sdhi_internal_dmac_probe(struct platform_device *pdev)
> {
> - const struct soc_device_attribute *soc = soc_device_match(soc_whitelist);
> + const struct soc_device_attribute *soc = soc_device_match(soc_dma_quirks);
> struct device *dev = &pdev->dev;
>
> - if (!soc)
> - return -ENODEV;
> -
> - global_flags |= (unsigned long)soc->data;
> + if (soc)
> + global_flags |= (unsigned long)soc->data;
>
> dev->dma_parms = devm_kzalloc(dev, sizeof(*dev->dma_parms), GFP_KERNEL);
> if (!dev->dma_parms)
> --
> 2.20.1
>
--
Regards,
Niklas Söderlund
next prev parent reply other threads:[~2019-12-04 18:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-03 19:48 [PATCH] mmc: renesas_sdhi: remove whitelist for internal DMAC Wolfram Sang
2019-12-04 9:33 ` Geert Uytterhoeven
2019-12-04 17:59 ` Niklas Söderlund [this message]
2019-12-05 12:12 ` Yoshihiro Shimoda
2019-12-10 13:09 ` 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=20191204175933.GD28879@bigcity.dyn.berto.se \
--to=niklas.soderlund@ragnatech.se \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=wsa+renesas@sang-engineering.com \
--cc=wsa@the-dreams.de \
--cc=yoshihiro.shimoda.uh@renesas.com \
/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).