I am not able to reproduce the problem here with current Linus' tree
(5af568cbd55f60b5). This is what I see in dmesg when I do two rounds of
disconnect-connect with my random USB mouse
So this is weird. I tried it with _my_ random USB mouse, and it works fine. It's my custom HID device that breaks it. Joystick also seemed to work fine. I wonder if it's somehow related to devices which only show up as hidraw devices (ie: they don't also show up as /dev/js or /dev/mouse.)
I re-configured my programmable USB device (PIC32 USB Starter Board) to be a mouse, and it works fine. When I configure it to be my custom HID device, I get the problems.
Guys, could you please send me your .config with which you are
experiencing the problem, so that I can try to reproduce it with it?
Attached.