Hi Wolfram,
On Tue, Apr 10, 2018 at 11:38 AM, Wolfram Sang
<[email protected]> wrote:
> Early revisions of certain SoCs cannot do multiple DMA RX streams in
> parallel. To avoid data corruption, only allow one DMA RX channel and
> fall back to PIO, if needed.
>
> Signed-off-by: Wolfram Sang <[email protected]>
> Reviewed-by: Yoshihiro Shimoda <[email protected]>
> Tested-by: Nguyen Viet Dung <[email protected]>
Thanks for your patch!
> --- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c
> +++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
> static int renesas_sdhi_internal_dmac_probe(struct platform_device *pdev)
> {
> - if (!soc_device_match(gen3_soc_whitelist))
> + const struct soc_device_attribute *soc =
> soc_device_match(gen3_soc_whitelist);
> +
> + if (!soc)
> return -ENODEV;
>
> + if (soc->data)
This non-NULL check is not really needed.
> + global_flags |= (unsigned long)soc->data;
> +
> return renesas_sdhi_probe(pdev, &renesas_sdhi_internal_dmac_dma_ops);
> }
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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