[COMMON] media: smfc: handle exceptional situations
authorCho KyongHo <pullip.cho@samsung.com>
Wed, 1 Apr 2015 10:24:12 +0000 (19:24 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:30:52 +0000 (14:30 +0900)
commit761d8fd9fb2d99fa247ec5716e6b9678799567b0
tree790022d6c828c8ba6c13d72ff65a0490900a1c7b
parent912afd755a13d45e5324a78037d244512a6144aa
[COMMON] media: smfc: handle exceptional situations

The driver should be robust under very exceptional situations caused
by unexpected behaviors of processes. Some processes may be suddenly
killed without waiting for the completion of request task in the
driver or H/W. Another processes that is not well-designed so that
they can close the opened device node while forgeting to wait for
the completion of their requested tasks.
Even though processes works unexpectedly, SMFC driver now handles
all exceptional cases with waiting for the H/W's working before
releasing all resources referred by the driver. Other resources that
the driver does not care about is handled by the frameworks such as
videobuf2 and v4l2-mem2mem.

Change-Id: I5ec4c3d91a9328e163658b3732a5ab37de30e73c
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/platform/exynos/smfc/smfc.c