File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 99
99
#define AT_XDMAC_CNDC_NDE (0x1 << 0) /* Channel x Next Descriptor Enable */
100
100
#define AT_XDMAC_CNDC_NDSUP (0x1 << 1) /* Channel x Next Descriptor Source Update */
101
101
#define AT_XDMAC_CNDC_NDDUP (0x1 << 2) /* Channel x Next Descriptor Destination Update */
102
+ #define AT_XDMAC_CNDC_NDVIEW_MASK GENMASK(28, 27)
102
103
#define AT_XDMAC_CNDC_NDVIEW_NDV0 (0x0 << 3) /* Channel x Next Descriptor View 0 */
103
104
#define AT_XDMAC_CNDC_NDVIEW_NDV1 (0x1 << 3) /* Channel x Next Descriptor View 1 */
104
105
#define AT_XDMAC_CNDC_NDVIEW_NDV2 (0x2 << 3) /* Channel x Next Descriptor View 2 */
@@ -402,7 +403,8 @@ static void at_xdmac_start_xfer(struct at_xdmac_chan *atchan,
402
403
*/
403
404
if (at_xdmac_chan_is_cyclic (atchan ))
404
405
reg = AT_XDMAC_CNDC_NDVIEW_NDV1 ;
405
- else if (first -> lld .mbr_ubc & AT_XDMAC_MBR_UBC_NDV3 )
406
+ else if ((first -> lld .mbr_ubc &
407
+ AT_XDMAC_CNDC_NDVIEW_MASK ) == AT_XDMAC_MBR_UBC_NDV3 )
406
408
reg = AT_XDMAC_CNDC_NDVIEW_NDV3 ;
407
409
else
408
410
reg = AT_XDMAC_CNDC_NDVIEW_NDV2 ;
You can’t perform that action at this time.
0 commit comments