V4L/DVB (5578): Workaround for bad hardare/firmware on some pluto2 devices
authorholger@muscate-magnussen.de <holger@muscate-magnussen.de>
Tue, 1 May 2007 12:25:56 +0000 (09:25 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 9 May 2007 13:12:35 +0000 (10:12 -0300)
commit4d8451700171d6bbc254191880f86bfdeec2f74f
tree4b08ddedcb6717f189668e66e6f35e496ae318ff
parentba70d59bb987110c4394e896b299f9726609aa33
V4L/DVB (5578): Workaround for bad hardare/firmware on some pluto2 devices

pluto2_driver: Workaround for pluto2 card reporting wrong number of
received packets and flooding system with interrupts.

This patch constitutes a workaround for a hardware/firmware problem of the
pluto2-based card (e.g., Satelco EasyWatch).

It can happen in rare cases that the card gets into a mode where it
always reports back a number of received packets (nbpackets) which is
larger than the maximum permissible number of packets (TS_DMA_PACKETS).
The workaround that is already in the driver in function pluto_dma_end
reports back zero received packets. In spite of the (in reality) zero
received packets the card continues to generate interrupts at a very
high rate, which can effectively stall the system.

The patch resets the TS logic, which puts the card back into normal
operations.

Signed-off-by: Holger Magnussen <holger@muscate-magnussen.de>
Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/pluto2/pluto2.c