Allocate channel count consistently increases due to a missing source ID (srcid) cleanup in the fsl_edma_free_chan_resources() function at imx93 eDMAv4. Reset 'srcid' at fsl_edma_free_chan_resources().
Unified · Split
| @@ -828,6 +828,7 @@ void fsl_edma_free_chan_resources(struct dma_chan *chan) · 827 unmodified lines | |||
| 828 | dma_pool_destroy(fsl_chan->tcd_pool); | 828 | dma_pool_destroy(fsl_chan->tcd_pool); |
| 829 | fsl_chan->tcd_pool = NULL; | 829 | fsl_chan->tcd_pool = NULL; |
| 830 | fsl_chan->is_sw = false; | 830 | fsl_chan->is_sw = false; |
| 831 | fsl_chan->srcid = 0; | ||
| 831 | } | 832 | } |
| 832 | 833 | ||
| 833 | void fsl_edma_cleanup_vchan(struct dma_device *dmadev) | 834 | void fsl_edma_cleanup_vchan(struct dma_device *dmadev) |