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

Commit 635b0090 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Reset the usb read buffer in case of error"

parents c466b4cd 996ff52f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -286,10 +286,11 @@ static void usb_read_work_fn(struct work_struct *work)
		req->buf = ch->read_buf;
		req->length = USB_MAX_OUT_BUF;
		err = usb_diag_read(ch->hdl, req);
		if (err && err != -EIO) {
		if (err) {
			pr_debug("diag: In %s, error in reading from USB %s, err: %d\n",
				 __func__, ch->name, err);
			atomic_set(&ch->read_pending, 0);
			if (err != -EIO)
				queue_work(ch->usb_wq, &(ch->read_work));
		}
	} else {