]> asedeno.scripts.mit.edu Git - linux.git/commit
media: intel-ipu3: cio2: Disable and sync irq before stream off
authorYong Zhi <yong.zhi@intel.com>
Fri, 9 Feb 2018 00:14:24 +0000 (19:14 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 07:26:07 +0000 (02:26 -0500)
commitd69a5a2cd197344f552c1c620300d479e98877ef
tree24e3cfb1e778cb77cc91277150ca141995b9a104
parent43df6ea0c6ae85ae81edda3261d8d257d88a78a2
media: intel-ipu3: cio2: Disable and sync irq before stream off

This is to avoid pending interrupts to be handled during
stream off, in which case, the ready buffer will be removed
from buffer list, thus not all buffers can be returned to VB2
as expected. Disable CIO2 irq at cio2_hw_exit() so no new
interrupts are generated.

Signed-off-by: Yong Zhi <yong.zhi@intel.com>
Signed-off-by: Tianshu Qiu <tian.shu.qiu@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/intel/ipu3/ipu3-cio2.c