V4L/DVB: cx23885: Protect PCI interrupt mask manipulations with a spinlock
authorAndy Walls <awalls@md.metrocast.net>
Mon, 19 Jul 2010 04:19:43 +0000 (01:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Aug 2010 02:42:55 +0000 (23:42 -0300)
commitdbe83a3b921328e12b2abe894fc692afba293d7f
treee13443d29b6b929a61584b06dec5f3eff84e2111
parent98d109f90fc02ce8baf1c2471ffcf8d66fb0d8e6
V4L/DVB: cx23885: Protect PCI interrupt mask manipulations with a spinlock

This patch encapsulates access to the PCI_INT_MSK register and
dev->pci_irqmask variable and protects them with a spinlock.
This is needed because both the hard IRQ handler and a workhandler
will need to manipulate the mask to disable the AV_CORE interrupt.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx23885/cx23885-cards.c
drivers/media/video/cx23885/cx23885-core.c
drivers/media/video/cx23885/cx23885-vbi.c
drivers/media/video/cx23885/cx23885-video.c
drivers/media/video/cx23885/cx23885.h