This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d5d93f620757b1fcc46dbbe8d0e9ccd93576707e Author: Jukka Laitinen <[email protected]> AuthorDate: Mon Sep 14 09:36:38 2026 +0300 arch/arm/src/imx9/imx9_edma.c: Fix nxstyle issues Fix alignment issues Signed-off-by: Jukka Laitinen <[email protected]> --- arch/arm/src/imx9/imx9_edma.c | 9 +++++---- arch/arm64/src/imx9/imx9_edma.c | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/arm/src/imx9/imx9_edma.c b/arch/arm/src/imx9/imx9_edma.c index efa043fb876..c045c120a92 100644 --- a/arch/arm/src/imx9/imx9_edma.c +++ b/arch/arm/src/imx9/imx9_edma.c @@ -528,11 +528,11 @@ static void imx9_dmaterminate(struct imx9_dmach_s *dmach, int result) * if not continue to free tcds in chain */ - next = dmach->flags & EDMA_CONFIG_LOOPDEST ? - NULL : (struct imx9_edmatcd_s *) - imx9_edma_dmaaddr_to_addr(tcd->dlastsga); + next = dmach->flags & EDMA_CONFIG_LOOPDEST ? NULL : + (struct imx9_edmatcd_s *)imx9_edma_dmaaddr_to_addr( + tcd->dlastsga); - imx9_tcd_free_nolock(tcd); + imx9_tcd_free_nolock(tcd); } dmach->head = NULL; @@ -1526,6 +1526,7 @@ unsigned int imx9_dmach_getcount(DMACH_HANDLE handle) unsigned int imx9_dmach_idle(DMACH_HANDLE handle) { struct imx9_dmach_s *dmach = (struct imx9_dmach_s *)handle; + return dmach->state == IMX9_DMA_IDLE ? 0 : -1; } diff --git a/arch/arm64/src/imx9/imx9_edma.c b/arch/arm64/src/imx9/imx9_edma.c index 08834231ba1..af85d41dafa 100644 --- a/arch/arm64/src/imx9/imx9_edma.c +++ b/arch/arm64/src/imx9/imx9_edma.c @@ -480,10 +480,10 @@ static void imx9_dmaterminate(struct imx9_dmach_s *dmach, int result) * if not continue to free tcds in chain */ - next = dmach->flags & EDMA_CONFIG_LOOPDEST ? - NULL : (struct imx9_edmatcd_s *)((uintptr_t)tcd->dlastsga); + next = dmach->flags & EDMA_CONFIG_LOOPDEST ? NULL : + (struct imx9_edmatcd_s *)((uintptr_t)tcd->dlastsga); - imx9_tcd_free_nolock(tcd); + imx9_tcd_free_nolock(tcd); } dmach->head = NULL; @@ -1403,6 +1403,7 @@ unsigned int imx9_dmach_getcount(DMACH_HANDLE handle) unsigned int imx9_dmach_idle(DMACH_HANDLE handle) { struct imx9_dmach_s *dmach = (struct imx9_dmach_s *)handle; + return dmach->state == IMX9_DMA_IDLE ? 0 : -1; }
