Commit 1af526b
dmaengine: stm32-mdma: use Link Address Register to compute residue
Current implementation relies on curr_hwdesc index. But to keep this index
up to date, Block Transfer interrupt (BTIE) has to be enabled.
If it is not, curr_hwdesc is not updated, and then residue is not reliable.
Rely on Link Address Register instead. And disable BTIE interrupt
in stm32_mdma_setup_xfer() because it is no more needed in case of
_prep_slave_sg() to maintain curr_hwdesc up to date.
Change-Id: I515f6d10d14ef4d3f5432b197e0ea0eb76fc7da7
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/320986
Tested-by: Alain VOLMAT <alain.volmat@foss.st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Reviewed-by: Alain VOLMAT <alain.volmat@foss.st.com>1 parent 7df3e55 commit 1af526b
1 file changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
782 | | - | |
783 | 781 | | |
784 | 782 | | |
785 | 783 | | |
| |||
1326 | 1324 | | |
1327 | 1325 | | |
1328 | 1326 | | |
1329 | | - | |
| 1327 | + | |
1330 | 1328 | | |
1331 | 1329 | | |
1332 | 1330 | | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | 1331 | | |
1340 | 1332 | | |
1341 | | - | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1342 | 1336 | | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1343 | 1342 | | |
1344 | 1343 | | |
1345 | 1344 | | |
| |||
0 commit comments