* [PATCH] dmaengine: at_hdmac: declare slave capabilities
@ 2015-01-06 16:36 Ludovic Desroches
2015-01-09 14:07 ` Maxime Ripard
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ludovic Desroches @ 2015-01-06 16:36 UTC (permalink / raw)
To: linux-arm-kernel
Declare slave capabilities to suppress "this driver doesn't support generic
slave capabilities reporting" warning.
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
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);
--
2.2.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] dmaengine: at_hdmac: declare slave capabilities
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
2015-01-13 18:33 ` Vinod Koul
2 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2015-01-09 14:07 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jan 06, 2015 at 05:36:26PM +0100, Ludovic Desroches wrote:
> Declare slave capabilities to suppress "this driver doesn't support generic
> slave capabilities reporting" warning.
>
> Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150109/8d3367a3/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] dmaengine: at_hdmac: declare slave capabilities
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
2015-01-13 18:33 ` Vinod Koul
2 siblings, 0 replies; 4+ messages in thread
From: Nicolas Ferre @ 2015-01-12 13:28 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] dmaengine: at_hdmac: declare slave capabilities
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
@ 2015-01-13 18:33 ` Vinod Koul
2 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2015-01-13 18:33 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jan 06, 2015 at 05:36:26PM +0100, Ludovic Desroches wrote:
> Declare slave capabilities to suppress "this driver doesn't support generic
> slave capabilities reporting" warning.
>
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-13 18:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-01-13 18:33 ` Vinod Koul
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).