Merge tag 'usb-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb...
[linux-2.6-block.git] / drivers / usb / gadget / udc / aspeed-vhub / core.c
index c08d385e27239a231f1a4a988e55a5ed8a1e7320..90b134d5dca95ad53795a2c24f983c772f17cff7 100644 (file)
@@ -65,14 +65,16 @@ void ast_vhub_done(struct ast_vhub_ep *ep, struct ast_vhub_req *req,
 void ast_vhub_nuke(struct ast_vhub_ep *ep, int status)
 {
        struct ast_vhub_req *req;
-
-       EPDBG(ep, "Nuking\n");
+       int count = 0;
 
        /* Beware, lock will be dropped & req-acquired by done() */
        while (!list_empty(&ep->queue)) {
                req = list_first_entry(&ep->queue, struct ast_vhub_req, queue);
                ast_vhub_done(ep, req, status);
+               count++;
        }
+       if (count)
+               EPDBG(ep, "Nuked %d request(s)\n", count);
 }
 
 struct usb_request *ast_vhub_alloc_request(struct usb_ep *u_ep,