Skip to content

Commit

Permalink
xhci: dbc: add dbgtty request to end of list once it completes
Browse files Browse the repository at this point in the history
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: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240905143300.1959279-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Mathias Nyman authored and Greg Kroah-Hartman committed Sep 5, 2024
1 parent 9044ad5 commit 31128e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/xhci-dbgtty.c
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 31128e7

Please sign in to comment.