discovery icon indicating copy to clipboard operation
discovery copied to clipboard

add xHCI host dead troubleshooting

Open XMRHRX opened this issue 1 year ago • 3 comments

Hello, I want to contribute my solution about a problem trouble me a few months.

When STM32F freeze and not responding to Linux kernel, so kernel think it dead, reconnect USB won't make kernel re-check it. I find the solution that we can use bind & unbind to make kernel re-check it.

XMRHRX avatar Jul 06 '24 14:07 XMRHRX

This sounds more like a Linux kernel bug than something the user should have to deal with? Maybe file a bug report there? (Yes, I know that reporting bugs on the Linux kernel is an adventure. But the host controller really shouldn't "get stuck" here, I think, which is what it looks like is happening offhand.)

BartMassey avatar Jul 06 '24 17:07 BartMassey

Well, I think I need time to check these, but I feel it less seem a bug, it feel more like this is just how it currently work, which if not get device response just remove it and never check it. Maybe other "full implement" device like mouse, will make some request when re-connect, so kernel mark it connected again.(just a guess, I just dive into hardware recently) Should I close this merge, or just keep it here till I have time to check it?

XMRHRX avatar Jul 08 '24 12:07 XMRHRX

Can leave it open for now. The messages look to me like the Linux host controller has gotten lost, but I could be wrong.

BartMassey avatar Jul 09 '24 03:07 BartMassey