]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xhci: dbc: add dbgtty request to end of list once it completes
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 5 Sep 2024 14:32:50 +0000 (17:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2024 14:39:21 +0000 (16:39 +0200)
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>
drivers/usb/host/xhci-dbgtty.c

index b74e98e94393262c6e7fb27149975598b5f998ea..5e567b3eb4d91dbd97b3f70f339dd1903e6e3013 100644 (file)
@@ -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)