1
0
Fork 0

staging/fsl_qbman: Consume all frames in DQRR during init

The qm_dqrr_cdc_consume_n() function takes a bitmask, not an index.

Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Roy Pledge 2018-06-22 15:47:07 -04:00 committed by Dong Aisheng
parent 2f66e3553f
commit f323a2bf13
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ static inline int qm_dqrr_init(struct qm_portal *portal,
qm_dqrr_cce_consume(portal, dqrr->fill);
break;
case qm_dqrr_cdc:
qm_dqrr_cdc_consume_n(portal, (QM_DQRR_SIZE - 1));
qm_dqrr_cdc_consume_n(portal, (1<<QM_DQRR_SIZE) - 1);
break;
default:
DPA_ASSERT(0);