V4L/DVB (9595): cx18: Improve handling of outgoing mailboxes detected to be busy
authorAndy Walls <awalls@radix.net>
Sat, 8 Nov 2008 02:57:46 +0000 (23:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:38:03 +0000 (09:38 -0200)
commitac50441720332f22a9d85ac03151d6acb7bc55d6
tree4c7e9b213cccf24f6cff3f614c61c80a7b96932a
parentd670b6ff4ef32d3a0804ec26ad53a2a7712cec98
V4L/DVB (9595): cx18: Improve handling of outgoing mailboxes detected to be busy

cx18: Improve handling of outgoing mailboxes detected to be busy.  When
encountering a busy mailbox, sleep instead of polling, and wait for interrupt or
timeout.  If the mailbox is still busy, force it free.  When sending commands,
make sure we never create a situation where we mark the mailbox busy upon
sending, and ensure we always have a method to cleanly recover from a busy
mailbox.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-irq.c
drivers/media/video/cx18/cx18-mailbox.c