On Fri, 2016-06-24 at 09:14 +0200, Benjamin Tissoires wrote:
Looks like the same issue Andy is seeing on the Surface Book. So I
think my patch must have a bug where it resets the quirks set by
usbhid. And this is why we are screwed here.
Yes, I think that's likely. There doesn't seem to be an issue most of
the time, so it's not a huge deal.
Regarding your disconnect issue, what happens I think is that you
disconnect it before the timeout of usb_submit_urb(), and so the usb
layer is stuck trying to access the device and can't access the newly
plugged one. If you wait enough (initial timeout + new timeout -> 20
secs), then the device behaves properly again.
That is the behavior I have noticed. Is there any potential fix?
Sincerely,
Dennis Chen