Skip to content
Commit d8ca4e9e authored by Declan Snyder's avatar Declan Snyder Committed by David Leach
Browse files

drivers: dma_mcux_lpc: Status fixes



Some miscellaneous fixes to LPC DMA driver regarding status tracking:

- If a DMA channel has not been configured for any transfer,
  there will be a bug caused by the virtual channel being -1
  and then trying to index -1 into the driver data structs.
  Add -EACCES return code to indicate this situation.

- Return -EINVAL from get_status if channel number is invalid

- Update the busy flag in the LPC DMA callback function.

Signed-off-by: default avatarDeclan Snyder <declan.snyder@nxp.com>
parent 0bff695d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment