size_t offset;
unsigned int src_width;
unsigned int dst_width;
+ unsigned int data_width;
u32 ctllo;
dev_vdbg(chan2dev(chan),
return NULL;
}
- src_width = min_t(unsigned int, dwc->dw->data_width[dwc_get_sms(dws)],
- dwc_fast_fls(src | len));
+ data_width = min_t(unsigned int, dwc->dw->data_width[dwc_get_sms(dws)],
+ dwc->dw->data_width[dwc_get_dms(dws)]);
- dst_width = min_t(unsigned int, dwc->dw->data_width[dwc_get_dms(dws)],
- dwc_fast_fls(dest | len));
+ src_width = dst_width = min_t(unsigned int, data_width,
+ dwc_fast_fls(src | dest | len));
ctllo = DWC_DEFAULT_CTLLO(chan)
| DWC_CTLL_DST_WIDTH(dst_width)