drivers: dma: dma_dw_common: Added missing break in switch
Added a break and corrected wrong usage of source
instead of destination.
Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
diff --git a/drivers/dma/dma_dw_common.c b/drivers/dma/dma_dw_common.c
index 722272e..7cd4bf9 100644
--- a/drivers/dma/dma_dw_common.c
+++ b/drivers/dma/dma_dw_common.c
@@ -206,6 +206,7 @@
case 1:
/* byte at a time transfer */
lli_desc->ctrl_lo |= DW_CTLL_SRC_WIDTH(0);
+ break;
case 2:
/* non peripheral copies are optimal using words */
switch (cfg->channel_direction) {
@@ -236,7 +237,8 @@
switch (cfg->dest_data_size) {
case 1:
/* byte at a time transfer */
- lli_desc->ctrl_lo |= DW_CTLL_SRC_WIDTH(0);
+ lli_desc->ctrl_lo |= DW_CTLL_DST_WIDTH(0);
+ break;
case 2:
/* non peripheral copies are optimal using words */
switch (cfg->channel_direction) {