Skip to contentSkip to conversation

dma: cppi41: add missing directions bitfield

PATCH In review Felipe Balbi 3 participants 3 messages Feb 25, 2015 – Mar 9, 2015 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma: cppi41: add missing directions bitfield

Without those we will see a kernel WARN()
when loading musb on am335x devices.

---
 drivers/dma/cppi41.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/cppi41.c +1 -0
index 512cb8e2805e..4e9cc8e8100c 100644
@@ -926,6 +926,7 @@ static int cppi41_dma_probe(struct platform_device *pdev)
 	cdd->ddev.device_issue_pending = cppi41_dma_issue_pending;
 	cdd->ddev.device_prep_slave_sg = cppi41_dma_prep_slave_sg;
 	cdd->ddev.device_terminate_all = cppi41_stop_chan;
+	cdd->ddev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
 	cdd->ddev.dev = dev;
 	INIT_LIST_HEAD(&cdd->ddev.channels);
 	cpp41_dma_info.dma_cap = cdd->ddev.cap_mask;
Signature · 6 lines
2.3.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 13 lines · Felipe Balbi

Without those we will see a kernel WARN()
when loading musb on am335x devices.

---
 drivers/dma/cppi41.c | 1 +
 1 file changed, 1 insertion(+)
drivers/dma/cppi41.c +0 -0
index 512cb8e2805e..4e9cc8e8100c 100644

drivers/dma/cppi41.c static int cppi41_dma_probe(struct platform_device *pdev) · line 932

Quoted 7 lines
drivers/dma/cppi41.c +1 -0
@@ -926,6 +926,7 @@ static int cppi41_dma_probe(struct platform_device *pdev)
 	cdd->ddev.device_issue_pending = cppi41_dma_issue_pending;
 	cdd->ddev.device_prep_slave_sg = cppi41_dma_prep_slave_sg;
 	cdd->ddev.device_terminate_all = cppi41_stop_chan;
+	cdd->ddev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
 	cdd->ddev.dev = dev;
 	INIT_LIST_HEAD(&cdd->ddev.channels);
 	cpp41_dma_info.dma_cap = cdd->ddev.cap_mask;

Along with this please set src/dstn_addr_widths and residue_granularity please

Signature · 1 line
~Vinod
#2 lore raw
Quoted 9 lines · Vinod Koul
Quoted 8 lines · Felipe Balbi

Without those we will see a kernel WARN()
when loading musb on am335x devices.

---
 drivers/dma/cppi41.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 14 lines

drivers/dma/cppi41.c static int cppi41_dma_probe(struct platform_device *pdev) · line 932

Quoted 12 lines
drivers/dma/cppi41.c +1 -0
index 512cb8e2805e..4e9cc8e8100c 100644
@@ -926,6 +926,7 @@ static int cppi41_dma_probe(struct platform_device *pdev)
 	cdd->ddev.device_issue_pending = cppi41_dma_issue_pending;
 	cdd->ddev.device_prep_slave_sg = cppi41_dma_prep_slave_sg;
 	cdd->ddev.device_terminate_all = cppi41_stop_chan;
+	cdd->ddev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
 	cdd->ddev.dev = dev;
 	INIT_LIST_HEAD(&cdd->ddev.channels);
 	cpp41_dma_info.dma_cap = cdd->ddev.cap_mask;

Along with this please set src/dstn_addr_widths and residue_granularity please

will do.

Signature · 1 line
balbi