LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] dmaengine: mxs-dma: Declare slave capabilities for the generic code
@ 2014-12-29 17:21 Fabio Estevam
2015-01-06 15:33 ` Maxime Ripard
2015-01-13 18:19 ` Vinod Koul
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2014-12-29 17:21 UTC (permalink / raw)
To: vinod.koul; +Cc: linux-kernel, shawn.guo, kernel, Fabio Estevam, Maxime Ripard
From: Fabio Estevam <fabio.estevam@freescale.com>
Since ecc19d17868be9c ("dmaengine: Add a warning for drivers not using the
generic slave caps retrieval") the following warning is observed:
[ 0.113023] ------------[ cut here ]------------
[ 0.113053] WARNING: CPU: 0 PID: 1 at drivers/dma/dmaengine.c:830 dma_async_device_register+0x2a0/0x4c8()
[ 0.113063] this driver doesn't support generic slave capabilities reporting
Declare the slave capabilities to avoid such warning.
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/dma/mxs-dma.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
index 599ffb5..829ec68 100644
--- a/drivers/dma/mxs-dma.c
+++ b/drivers/dma/mxs-dma.c
@@ -848,6 +848,10 @@ static int __init mxs_dma_probe(struct platform_device *pdev)
mxs_dma->dma_device.device_pause = mxs_dma_pause_chan;
mxs_dma->dma_device.device_resume = mxs_dma_resume_chan;
mxs_dma->dma_device.device_terminate_all = mxs_dma_terminate_all;
+ mxs_dma->dma_device.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
+ mxs_dma->dma_device.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
+ mxs_dma->dma_device.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
+ mxs_dma->dma_device.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
mxs_dma->dma_device.device_issue_pending = mxs_dma_enable_chan;
ret = dma_async_device_register(&mxs_dma->dma_device);
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dmaengine: mxs-dma: Declare slave capabilities for the generic code
2014-12-29 17:21 [PATCH] dmaengine: mxs-dma: Declare slave capabilities for the generic code Fabio Estevam
@ 2015-01-06 15:33 ` Maxime Ripard
2015-01-13 18:19 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2015-01-06 15:33 UTC (permalink / raw)
To: Fabio Estevam; +Cc: vinod.koul, linux-kernel, shawn.guo, kernel, Fabio Estevam
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
On Mon, Dec 29, 2014 at 03:21:19PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Since ecc19d17868be9c ("dmaengine: Add a warning for drivers not using the
> generic slave caps retrieval") the following warning is observed:
>
> [ 0.113023] ------------[ cut here ]------------
> [ 0.113053] WARNING: CPU: 0 PID: 1 at drivers/dma/dmaengine.c:830 dma_async_device_register+0x2a0/0x4c8()
> [ 0.113063] this driver doesn't support generic slave capabilities reporting
>
> Declare the slave capabilities to avoid such warning.
>
> Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dmaengine: mxs-dma: Declare slave capabilities for the generic code
2014-12-29 17:21 [PATCH] dmaengine: mxs-dma: Declare slave capabilities for the generic code Fabio Estevam
2015-01-06 15:33 ` Maxime Ripard
@ 2015-01-13 18:19 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2015-01-13 18:19 UTC (permalink / raw)
To: Fabio Estevam
Cc: linux-kernel, shawn.guo, kernel, Fabio Estevam, Maxime Ripard
On Mon, Dec 29, 2014 at 03:21:19PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Since ecc19d17868be9c ("dmaengine: Add a warning for drivers not using the
> generic slave caps retrieval") the following warning is observed:
>
> [ 0.113023] ------------[ cut here ]------------
> [ 0.113053] WARNING: CPU: 0 PID: 1 at drivers/dma/dmaengine.c:830 dma_async_device_register+0x2a0/0x4c8()
> [ 0.113063] this driver doesn't support generic slave capabilities reporting
>
> Declare the slave capabilities to avoid such warning.
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-13 18:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-29 17:21 [PATCH] dmaengine: mxs-dma: Declare slave capabilities for the generic code Fabio Estevam
2015-01-06 15:33 ` Maxime Ripard
2015-01-13 18:19 ` 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).