Skip to content

Commit

Permalink
drivers: dma: dma_dw_common: Log start and stop in info level
Browse files Browse the repository at this point in the history
The start and stop of the DMA channel provides useful information in
default logs and they are not too frequent to cause bandwidth issues.

Signed-off-by: Peter Ujfalusi <[email protected]>
  • Loading branch information
ujfalusi authored and fabiobaltieri committed Feb 26, 2024
1 parent f918aea commit 11f69be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/dma/dma_dw_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ int dw_dma_start(const struct device *dev, uint32_t channel)
goto out;
}

LOG_INF("%s: channel %d start", dev->name, channel);

struct dw_lli *lli = chan_data->lli_current;

#ifdef CONFIG_DMA_DW_HW_LLI
Expand Down Expand Up @@ -576,7 +578,7 @@ int dw_dma_stop(const struct device *dev, uint32_t channel)
int i;
#endif

LOG_DBG("%s: channel %d stop", dev->name, channel);
LOG_INF("%s: channel %d stop", dev->name, channel);

/* Validate the channel state */
if (chan_data->state != DW_DMA_ACTIVE &&
Expand Down

0 comments on commit 11f69be

Please sign in to comment.