Commit 859bda4
committed
dmaengine: add dma_request/release_chan_linked to manage device link
In order to enforce suspend/resume ordering, this patch adds a new
API to request/release a DMA channel and create a device link
between DMA controller (DMA channel provider) and DMA client
(DMA channel consumer). This link avoids to suspend DMA before
DMA clients.
Clients who will use dma_request_chan_linked will have to
unbalanced the device link by using dma_release_chan_linked.
Change-Id: I37b69cf74b60091e2fff5447d6c623594d903737
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/155327
Reviewed-by: CITOOLS <smet-aci-reviews@lists.codex.cro.st.com>
Reviewed-by: Alexandre TORGUE <alexandre.torgue@st.com>1 parent ed53604 commit 859bda4
2 files changed
+46
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
739 | 767 | | |
740 | 768 | | |
741 | 769 | | |
| |||
794 | 822 | | |
795 | 823 | | |
796 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
797 | 832 | | |
798 | 833 | | |
799 | 834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1318 | 1318 | | |
1319 | 1319 | | |
1320 | 1320 | | |
| 1321 | + | |
1321 | 1322 | | |
1322 | 1323 | | |
1323 | 1324 | | |
| 1325 | + | |
1324 | 1326 | | |
1325 | 1327 | | |
1326 | 1328 | | |
| |||
1353 | 1355 | | |
1354 | 1356 | | |
1355 | 1357 | | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1356 | 1363 | | |
1357 | 1364 | | |
1358 | 1365 | | |
| |||
1361 | 1368 | | |
1362 | 1369 | | |
1363 | 1370 | | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
1364 | 1375 | | |
1365 | 1376 | | |
1366 | 1377 | | |
| |||
0 commit comments