Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14f09154 authored by Thierry Reding's avatar Thierry Reding Committed by Mauro Carvalho Chehab
Browse files

[media] tm6000: Flesh out the IRQ callback



This brings the IRQ callback implementation more in line with how other
drivers do it.

Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9dac9207
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -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);