@@ -211,6 +211,8 @@ static void wdm_in_callback(struct urb *urb)
}
}
+ dev_dbg(&desc->intf->dev, "rerr=%d, status=%d, length=%d, resp_count=%d\n", desc->rerr, status, length, desc->resp_count);
+
/*
* Handling devices with the WDM_DRAIN_ON_OPEN flag set:
* If desc->resp_count is unset, then the urb was submitted
@@ -516,6 +518,9 @@ static ssize_t wdm_read
return -ERESTARTSYS;
cntr = ACCESS_ONCE(desc->length);
+
+ dev_dbg(&desc->intf->dev, "rerr=%d, length=%d\n", desc->rerr, cntr);
+
if (cntr == 0) {
desc->read = 0;
retry: