mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Cercueil <paul@crapouillou.net>
To: Artur Rojek <contact@artur-rojek.eu>
Cc: Vinod Koul <vkoul@kernel.org>,
	linux-mips@vger.kernel.org, dmaengine@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dmaengine: jz4780: Set max number of SGs per burst
Date: Mon, 30 Aug 2021 10:48:52 +0100	[thread overview]
Message-ID: <GLCNYQ.LL8K0PVSTZ1W1@crapouillou.net> (raw)
In-Reply-To: <20210829195805.148964-1-contact@artur-rojek.eu>

Hi,

Le dim., août 29 2021 at 21:58:05 +0200, Artur Rojek 
<contact@artur-rojek.eu> a écrit :
> Total amount of SG list entries executed in a single burst is limited 
> by
> the number of available DMA descriptors.
> This information is useful for device drivers utilizing this DMA 
> engine.
> 
> Signed-off-by: Artur Rojek <contact@artur-rojek.eu>

Acked-by: Paul Cercueil <paul@crapouillou.net>

Cheers,
-Paul

> ---
>  drivers/dma/dma-jz4780.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c
> index ebee94dbd630..96701dedcac8 100644
> --- a/drivers/dma/dma-jz4780.c
> +++ b/drivers/dma/dma-jz4780.c
> @@ -915,6 +915,7 @@ static int jz4780_dma_probe(struct 
> platform_device *pdev)
>  	dd->dst_addr_widths = JZ_DMA_BUSWIDTHS;
>  	dd->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
>  	dd->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
> +	dd->max_sg_burst = JZ_DMA_MAX_DESC;
> 
>  	/*
>  	 * Enable DMA controller, mark all channels as not programmable.
> --
> 2.33.0
> 



  reply	other threads:[~2021-08-30  9:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-29 19:58 Artur Rojek
2021-08-30  9:48 ` Paul Cercueil [this message]
2021-10-11 14:09   ` Paul Cercueil
2021-10-18  6:37 ` Vinod Koul

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=GLCNYQ.LL8K0PVSTZ1W1@crapouillou.net \
    --to=paul@crapouillou.net \
    --cc=contact@artur-rojek.eu \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=vkoul@kernel.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

all inboxes | Powered by JetHome®