media: s5p-jpeg: Add stream error handling for Exynos5420
authorhenryhsu <henryhsu@chromium.org>
Fri, 30 Jun 2017 14:15:47 +0000 (10:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 12:36:50 +0000 (08:36 -0400)
commit80cdacaa5cad7e0550789a47bcd108f32a7fc9f1
tree9106fad591febec8e8b1749e48617fcb18365c74
parent1c84e7f9d5dc596bef22204131e561c4b3addf0a
media: s5p-jpeg: Add stream error handling for Exynos5420

On Exynos5420, the STREAM_STAT bit raised on the JPGINTST register means
there is a syntax error or an unrecoverable error on compressed file
when ERR_INT_EN is set to 1.

Fix this case and report BUF_STATE_ERROR to videobuf2.

Signed-off-by: Henry-Ruey Hsu <henryhsu@chromium.org>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-jpeg/jpeg-core.c