mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
V4L/DVB (13185): gspca: Don't resubmit error status URB's when suspending
gspca: Don't resubmit error status URB's when suspending Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
bf926adfbb
commit
6a540bdf01
1 changed files with 6 additions and 4 deletions
|
@ -135,9 +135,10 @@ static void fill_frame(struct gspca_dev *gspca_dev,
|
|||
if (urb->status == -ESHUTDOWN)
|
||||
return; /* disconnection */
|
||||
#ifdef CONFIG_PM
|
||||
if (!gspca_dev->frozen)
|
||||
if (gspca_dev->frozen)
|
||||
return;
|
||||
#endif
|
||||
PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
|
||||
PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
|
||||
goto resubmit;
|
||||
}
|
||||
pkt_scan = gspca_dev->sd_desc->pkt_scan;
|
||||
|
@ -218,9 +219,10 @@ static void bulk_irq(struct urb *urb)
|
|||
break;
|
||||
default:
|
||||
#ifdef CONFIG_PM
|
||||
if (!gspca_dev->frozen)
|
||||
if (gspca_dev->frozen)
|
||||
return;
|
||||
#endif
|
||||
PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
|
||||
PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
|
||||
goto resubmit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue