]> git.baikalelectronics.ru Git - kernel.git/commit
soc: fsl: dpio: properly compute the consumer index
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 5 May 2020 20:14:29 +0000 (23:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 May 2020 00:35:24 +0000 (17:35 -0700)
commit47f1b7bb561f303ef0ebbe36c5fac27a7e945d52
tree6012bdd1f9bd14c111682a595945a2c550910bb3
parentcfa10dcc760947e2b053bd023defece3a19e2c0b
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: 6f358412446e ("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>
drivers/soc/fsl/dpio/qbman-portal.c