On Fri, 10 Jan 2025, Alexandre Ratchov wrote: > On Fri, Jan 10, 2025 at 02:30:48PM +0100, Dirk-Wilhelm Peters wrote: > > > > It was set to USB mode 1. Switching to USB modes 2, 3, and 4 did not > > change anything. It still connects as "umidi0: disabled" and freezes > > the system when removed/turned off. > > > > > Could you try other USB ports and see if the same happens? > > > > It shows the same behavior on all USB ports. > > > > thank you. Here's a diff that should fix the crashes (could you > confirm it does?) but it's still unclear why the device fails to > attach
Thanks, I have applied the patch and rebuilt the GENERIC.MP kernel. Unfortunately, it does not fix the crash and subsequent freezing of the system. > Index: umidi.c > =================================================================== > RCS file: /cvs/src/sys/dev/usb/umidi.c,v > retrieving revision 1.57 > diff -u -p -r1.57 umidi.c > --- umidi.c 23 May 2024 03:21:09 -0000 1.57 > +++ umidi.c 10 Jan 2025 14:15:20 -0000 > @@ -213,7 +213,6 @@ umidi_attach(struct device *parent, stru > return; > error: > printf("%s: disabled.\n", sc->sc_dev.dv_xname); > - usbd_deactivate(sc->sc_udev); > } > > int > >