MLK-19597: ISI: fix m2m hang issue after receiving 254 frames
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Thu, 13 Sep 2018 10:23:08 +0000 (18:23 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitf3b806e54c509ba8bc917f8a45c4d4c4e604efa1
tree25245f42b5a9f64d8e4f28a24c734921a1f809f9
parent25dfe7c6098b3ebe6a6cf5d9acccba735f3d0e37
MLK-19597: ISI: fix m2m hang issue after receiving 254 frames

In order to use ISI ping-pong buffer, driver add another list
for V4L2 m2m cap_q queue and add new list member to it from
cap_q default list without decreasing the related counter, so
it leads to overflow when run 254 times. So correct it.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-m2m.c