drivers: dma: dma_dw_common: Corrected compare value of dma_is_enabled
Corrected comapare value of dma_is_enabled as it is compare with wrong macro to check if channel is enabled or not. Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
This commit is contained in:
parent
3306eb7d91
commit
2c19de53bc
@ -434,7 +434,7 @@ bool dw_dma_is_enabled(const struct device *dev, uint32_t channel)
|
||||
{
|
||||
const struct dw_dma_dev_cfg *const dev_cfg = dev->config;
|
||||
|
||||
return dw_read(dev_cfg->base, DW_DMA_CHAN_EN) & DW_CHAN_MASK(channel);
|
||||
return dw_read(dev_cfg->base, DW_DMA_CHAN_EN) & DW_CHAN(channel);
|
||||
}
|
||||
|
||||
int dw_dma_start(const struct device *dev, uint32_t channel)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user