Re: git: 7520b88860d7 - main - usb(4): Automagically apply all quirks for USB mass storage devices.

From: Ruslan Bukin <br_at_freebsd.org>
Date: Mon, 28 Feb 2022 09:19:16 UTC
On Sun, Feb 27, 2022 at 09:34:42PM +0100, Hans Petter Selasky wrote:
> On 2/27/22 20:48, Ruslan Bukin wrote:
> > Hi,
> > 
> > I've an xhci issue with this change on my ARM Morello Board.
> > I've attached boot log. Can you look?
> > 
> > Thanks.
> > 
> > Ruslan
> 
> Hi,
> 
> The "xhci0: Resetting controller" indicates that the XHCI hardware 
> halted. If you just need this device working, then just load 
> usb_quirk.ko in /boot/loader.conf and add the same quirk there!
> 
> man usb_quirk
> 
> Maybe you can enable hw.usb.xhci.debug=17 from the loader during boot. 
> If there is only one device it shouldn't spam the console too much.
> 
> Sorry for the breakage. Seems to be related to xhci.c and probably its 
> handling of the unconfigure command.
> 

Here is the output with xhcidebug = 17:
https://people.freebsd.org/~br/usb_issue_debug_17.txt
Can you look? I've unplugged mouse and keyboard, but left USB storage device.

Ruslan