]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-mfc: use spinlock to protect MFC context
authorAndrzej Hajda <a.hajda@samsung.com>
Wed, 2 Dec 2015 08:22:31 +0000 (06:22 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 23 Dec 2015 15:58:36 +0000 (13:58 -0200)
commit7a77b483d4138daa51bb6ef69f074586a7621ab3
tree594852b6d5704899c8b589ea77ff6e3ff130176a
parentc2b5a88cc9369396b8948480a12fa693690396be
[media] s5p-mfc: use spinlock to protect MFC context

MFC driver uses dev->irqlock spinlock to protect queues only, but many context
fields require protection also - they can be accessed concurrently
from IOCTLs and IRQ handler. The patch increases protection range of irqlock
to those fields also.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c
drivers/media/platform/s5p-mfc/s5p_mfc_common.h
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c