Commit e71aa2a
committed
dmaengine: dw-axi-dmac: report per-channel max_burst via device_caps
The patch "dmaengine: dw-axi-dmac: add per-channel AXI burst length support"
programs ARLEN/AWLEN from the snps,axi-max-burst-len array but still
exposed a single max_burst value via dma_get_slave_caps(). As a result
all channels reported 8 even when limited to 4, leading to warnings:
dma dma2chan5: requested source burst length 8 exceeds supported 4
Add a .device_caps callback to return the correct per-channel max_burst.
This allows drivers like amba-pl011 to clamp burst lengths properly.
Fixes: 0e4e6a0c4f4e ("dmaengine: dw-axi-dmac: add per-channel AXI burst length support")
Signed-off-by: Nicolai Buchwitz <[email protected]>1 parent 2fa00bc commit e71aa2a
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
1479 | 1489 | | |
1480 | 1490 | | |
1481 | 1491 | | |
| |||
1733 | 1743 | | |
1734 | 1744 | | |
1735 | 1745 | | |
| 1746 | + | |
1736 | 1747 | | |
1737 | 1748 | | |
1738 | 1749 | | |
| |||
0 commit comments