CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/06/21 23:36:42

Modified files:
        sys/dev/usb    : umsm.c 

Log message:
don't deactivate the whole usb device if attach can't find endpoints.

r1.128 let umsm be greedy and attach to more interfaces on the same
usb device, rather than just the first 4 interfaces. Qeuctel EM060K-GL
modems have interfaces at 8 and 12, the first of which is umb but
the 12th used to attach as ugen. umsm now tries to attach to interface
12, but because it doesn't have the right set of endpoints the
attach hits an error path and disable the device.

this removes the usbd_deactivate call in the that error path, which
leaves all the other endpoints working.

this follows the advice of quectel. kevlo and i are talking about
moving to the linux model of maintaining a much more comprehenive
table of modems and which endpoints are supported, but this is an
improvement in the mean time.

ok kevlo@ deraadt@

Reply via email to