[media] s5p-fimc: Prevent lock up caused by incomplete H/W initialization
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 17 Nov 2011 09:23:21 +0000 (06:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jan 2012 14:59:42 +0000 (12:59 -0200)
commitf664684a56deb7675363e2fa3f1e2a5eedbb3222
tree1cbf41d964328e5aee0ecca5b5f8df824f2aaaf6
parentf1d99f39fbd0218b8f8f6548e5522cbc2124f949
[media] s5p-fimc: Prevent lock up caused by incomplete H/W initialization

The following ioctl sequence causes fimc_dma_run() to start processing without
complete scaler and DMA initialization which causes missing interrupt and
blocking on DQBUF:
S_FMT, STREAMON, QBUF, DQBUF, STREAMOFF, STREAMON, QBUF, DQBUF.

Fix this regression caused by moving pm_runtime* calls to start/stop_streaming
callback by making sure the fimc_m2m_resume() is always invoked when expected.

Reported-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-core.c