Skip to content

Commit

Permalink
[media] tm6000: Flesh out the IRQ callback
Browse files Browse the repository at this point in the history
This brings the IRQ callback implementation more in line with how other
drivers do it.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Thierry Reding authored and Mauro Carvalho Chehab committed Aug 31, 2011
1 parent 9dac920 commit 14f0915
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion drivers/staging/tm6000/tm6000-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,21 @@ static void tm6000_irq_callback(struct urb *urb)
struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq);
int i;

if (!dev)
switch (urb->status) {
case 0:
case -ETIMEDOUT:
break;

case -ECONNRESET:
case -ENOENT:
case -ESHUTDOWN:
return;

default:
tm6000_err("urb completion error %d.\n", urb->status);
break;
}

spin_lock(&dev->slock);
tm6000_isoc_copy(urb);
spin_unlock(&dev->slock);
Expand Down

0 comments on commit 14f0915

Please sign in to comment.