24 Feb
2014
24 Feb
'14
9:39 p.m.
Mario Kicherer wrote:
On 23.02.2014 21:24, Clemens Ladisch wrote:
+static void bcd2000_input_complete(struct urb *urb) +{
- if (urb->status) {
dev_warn(dev, PREFIX "input urb->status: %i\n", urb->status);
return;
- }
This will stop the input even on transient errors.
Hm, so, it is important to send the "acknowledge" urb afterwards nonetheless?
This has nothing to do with acknowledging. Once the completion callback was called, the URB is again owned by your driver, and nothing happens unless you submit it again.
The only reason not to re-submit the URB is a permanent error (i.e., if the device has been unplugged).
Do you actually own a BCD2000?
Yes.
Regards, Clemens