linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] dmaengine: at_hdmac: declare slave capabilities
Date: Mon, 12 Jan 2015 14:28:13 +0100	[thread overview]
Message-ID: <54B3CBED.1080702@atmel.com> (raw)
In-Reply-To: <1420562186-22386-1-git-send-email-ludovic.desroches@atmel.com>

Le 06/01/2015 17:36, Ludovic Desroches a ?crit :
> Declare slave capabilities to suppress "this driver doesn't support generic
> slave capabilities reporting" warning.
> 
> Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>

Okay:
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

Thanks Ludovic.
Bye.

> ---
>  drivers/dma/at_hdmac.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
> index 86450b3..1e1a4c5 100644
> --- a/drivers/dma/at_hdmac.c
> +++ b/drivers/dma/at_hdmac.c
> @@ -42,6 +42,11 @@
>  #define	ATC_DEFAULT_CFG		(ATC_FIFOCFG_HALFFIFO)
>  #define	ATC_DEFAULT_CTRLB	(ATC_SIF(AT_DMA_MEM_IF) \
>  				|ATC_DIF(AT_DMA_MEM_IF))
> +#define ATC_DMA_BUSWIDTHS\
> +	(BIT(DMA_SLAVE_BUSWIDTH_UNDEFINED) |\
> +	BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) |\
> +	BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) |\
> +	BIT(DMA_SLAVE_BUSWIDTH_4_BYTES))
>  
>  /*
>   * Initial number of descriptors to allocate for each channel. This could
> @@ -1531,6 +1536,10 @@ static int __init at_dma_probe(struct platform_device *pdev)
>  		atdma->dma_common.device_pause = atc_pause;
>  		atdma->dma_common.device_resume = atc_resume;
>  		atdma->dma_common.device_terminate_all = atc_terminate_all;
> +		atdma->dma_common.src_addr_widths = ATC_DMA_BUSWIDTHS;
> +		atdma->dma_common.dst_addr_widths = ATC_DMA_BUSWIDTHS;
> +		atdma->dma_common.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
> +		atdma->dma_common.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
>  	}
>  
>  	dma_writel(atdma, EN, AT_DMA_ENABLE);
> 


-- 
Nicolas Ferre

  parent reply	other threads:[~2015-01-12 13:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 16:36 [PATCH] dmaengine: at_hdmac: declare slave capabilities Ludovic Desroches
2015-01-09 14:07 ` Maxime Ripard
2015-01-12 13:28 ` Nicolas Ferre [this message]
2015-01-13 18:33 ` 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=54B3CBED.1080702@atmel.com \
    --to=nicolas.ferre@atmel.com \
    --cc=linux-arm-kernel@lists.infradead.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).