OSDN Git Service

media: omap3isp: Don't restart CCDC if we're about to stop
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 18 Oct 2019 14:50:05 +0000 (16:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 3 Jan 2020 15:35:41 +0000 (16:35 +0100)
commitdd12ed17ce9e5523d30d2d6b8eac0bf52500b64f
tree9824d97bee293285d2a450ce6132aed8339a39b1
parent7e2f75fd32385eadcd8c5b991508a90a5658ab9c
media: omap3isp: Don't restart CCDC if we're about to stop

The omap3isp driver set the new buffer and enabled the CCDC in a situation
a new buffer was available but streaming was about to be stopped on the
CCDC. This lead to frequent system crashes in case there were buffers
queued when streming was being stopped.

Fix this by first checking whether there's an intent to stop streaming and
if there isn't, then set the new buffer and re-enable CCDC.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/omap3isp/ispccdc.c