s32k3xx:EDMA fix git count

This commit is contained in:
David Sidrane 2022-12-19 05:06:59 -08:00 committed by Xiang Xiao
parent 2b11fd585f
commit 4fa163ade7

View File

@ -1479,12 +1479,13 @@ unsigned int s32k3xx_dmach_getcount(DMACH_HANDLE *handle)
if ((regval16 & EDMA_TCD_CITER_ELINK) != 0)
{
remaining = (regval16 & EDMA_TCD_CITER_MASK) >>
remaining = (regval16 & EDMA_TCD_CITER_MASK_ELINK) >>
EDMA_TCD_CITER_SHIFT;
}
else
{
remaining = 1;
remaining = (regval16 & EDMA_TCD_CITER_MASK) >>
EDMA_TCD_CITER_SHIFT;
}
}