Commit 49b1c21
dmaengine: stm32-dma3: defer channel registration to specify channel name
On STM32 DMA3, channels can be reserved, so they are non available for
Linux. This non-availability creates a mismatch between dma_chan id and
DMA3 channel id.
Use dma_async_device_channel_register() to register the channels
after controller registration and change the default channel name, so that
it can match the name in the Reference Manual and ease requesting a channel
thanks to its name.
Signed-off-by: Amelie Delaunay <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>1 parent 10b8e0f commit 49b1c21
1 file changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1732 | 1732 | | |
1733 | 1733 | | |
1734 | 1734 | | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
1738 | 1735 | | |
1739 | 1736 | | |
1740 | 1737 | | |
1741 | 1738 | | |
1742 | 1739 | | |
1743 | 1740 | | |
1744 | 1741 | | |
| 1742 | + | |
| 1743 | + | |
1745 | 1744 | | |
1746 | 1745 | | |
1747 | 1746 | | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1748 | 1759 | | |
1749 | 1760 | | |
1750 | 1761 | | |
1751 | | - | |
1752 | | - | |
1753 | 1762 | | |
1754 | 1763 | | |
1755 | 1764 | | |
| |||
0 commit comments