Re: lockdep warning in urb.c:363 usb_submit_urb

Oliver Neukum
2020-03-24T13:21:05Z

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

Am Dienstag, den 24.03.2020, 10:46 +0000 schrieb Qais Yousef:
>
> I should have stuck to what I know then. I misread the documentation. Hopefully
> the attached looks better. I don't see the new debug you added emitted.

That is odd. Please try

echo "module usbcore +mfp" > /sys/kernel/debug/dynamic_debug/control

with the attached improved patch.

Regards
Oliver

[-- Attachment #2: 0001-usb-hub-additional-debugging.patch --]
[-- Type: text/x-patch, Size: 697 bytes --]

From 89b420f4b6fd41e8901267ee698ac9e5d498f8db Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oneukum@suse.com>
Date: Mon, 23 Mar 2020 16:34:35 +0100
Subject: [PATCH 1/2] usb: hub additional debugging

---
drivers/usb/core/hub.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 54cd8ef795ec..12ce2fdc4c2a 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1629,6 +1629,7 @@ static int hub_configure(struct usb_hub *hub,
ret = -ENOMEM;
goto fail;
}
+ dev_dbg(hub_dev, "%p URB allocated \n", hub->urb);

usb_fill_int_urb(hub->urb, hdev, pipe, *hub->buffer, maxp, hub_irq,
hub, endpoint->bInterval);
--
2.16.4