Commit 31128e74 authored by Mathias Nyman's avatar Mathias Nyman Committed by Greg Kroah-Hartman
Browse files

xhci: dbc: add dbgtty request to end of list once it completes



Make sure we move the requests from the read_queue to the end of the
read_pool list, avoiding looping and using the same one request all
the time.

Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240905143300.1959279-3-mathias.nyman@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9044ad57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -346,7 +346,7 @@ static void dbc_rx_push(struct tasklet_struct *t)
			port->n_read = 0;
		}

		list_move(&req->list_pool, &port->read_pool);
		list_move_tail(&req->list_pool, &port->read_pool);
	}

	if (do_push)