commit | 7596ac9d19a9df25707ecaac0675881f62dd8c18 | [log] [tgz] |
---|---|---|
author | Ioana Ciornei <ioana.ciornei@nxp.com> | Tue May 05 23:14:29 2020 +0300 |
committer | David S. Miller <davem@davemloft.net> | Thu May 07 17:35:24 2020 -0700 |
tree | 6012bdd1f9bd14c111682a595945a2c550910bb3 | |
parent | eb55d7b65f1735dfb39fb14e47007d3c8fb74c43 [diff] |
soc: fsl: dpio: properly compute the consumer index Mask the consumer index before using it. Without this, we would be writing frame descriptors beyond the ring size supported by the QBMAN block. Fixes: 3b2abda7d28c ("soc: fsl: dpio: Replace QMAN array mode with ring mode enqueue") Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Acked-by: Li Yang <leoyang.li@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>