Re: Raspberry Pi 3B USB Printing Issue

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Tue, 15 Mar 2022 07:59:03 UTC
On 3/15/22 05:57, Archimedes Gaviola wrote:
> I did comment-out usbd_transfer_submit(xfer) and still the same behavior is
> experienced when hw.usb.dwc_otg.debug is enabled. The system seems to
> freeze as my USB keyboard is unresponsive and I cannot connect over the
> Ethernet NIC with SSH. I can't print and capture.

Hi,

If you re-plug the USB keyboard, does it come back?

Try setting "sysctl kern.consmute=1". Then only capture logs from 
/var/log/messages.

--HPS

> 
> freebsd@generic:/usr/src/sys/dev/usb % diff -Nur usb_hub.c.orig usb_hub.c
> --- usb_hub.c.orig      2022-03-14 22:37:03.162678000 +0800
> +++ usb_hub.c   2022-03-14 22:38:23.832660000 +0800
> @@ -202,7 +202,7 @@
> 
>          case USB_ST_SETUP:
>                  usbd_xfer_set_frame_len(xfer, 0, usbd_xfer_max_len(xfer));
> -               usbd_transfer_submit(xfer);
> +               /* usbd_transfer_submit(xfer); */
>                  break;
>