From 24b1faffde60e120edc3bb0a5a2c849a63b5056f Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 3 Jun 2020 00:03:56 +0200 Subject: [PATCH] upeksonly: Add a comment that multiple URBs are needed --- libfprint/drivers/upeksonly.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfprint/drivers/upeksonly.c b/libfprint/drivers/upeksonly.c index 52754c5..795ad2e 100644 --- a/libfprint/drivers/upeksonly.c +++ b/libfprint/drivers/upeksonly.c @@ -1403,6 +1403,9 @@ dev_activate (FpImageDevice *dev) self->num_flying = 0; self->img_transfers = g_ptr_array_new_with_free_func ((GFreeFunc) fpi_usb_transfer_unref); + /* This might seem odd, but we do need multiple in-flight URBs so that + * we never stop polling the device for more data. + */ for (i = 0; i < NUM_BULK_TRANSFERS; i++) { FpiUsbTransfer *transfer;