Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] atmel-isi: disable ISI even if it has codec request

In current code, stop_streaming() will just return if ISI is still
working in the codec. But this is incorrect, we need to disable ISI even
it is working on the codec, otherwise stop_streaming() will not work as
we expected.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Josh Wu and committed by
Mauro Carvalho Chehab
8c037835 408131b8

+1 -3
+1 -3
drivers/media/platform/soc_camera/atmel-isi.c
··· 431 431 time_before(jiffies, timeout)) 432 432 msleep(1); 433 433 434 - if (time_after(jiffies, timeout)) { 434 + if (time_after(jiffies, timeout)) 435 435 dev_err(icd->parent, 436 436 "Timeout waiting for finishing codec request\n"); 437 - return; 438 - } 439 437 440 438 /* Disable interrupts */ 441 439 isi_writel(isi, ISI_INTDIS,