Josuah Demangeon <[email protected]> wrote:

> Jonathan Gray <[email protected]> wrote:
> > Index: usbdevs
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/usb/usbdevs,v
> > retrieving revision 1.747
> > diff -u -p -r1.747 usbdevs
> > --- usbdevs 23 Jun 2022 00:31:37 -0000      1.747
> > +++ usbdevs 23 Aug 2022 14:39:28 -0000
> > @@ -2432,6 +2432,7 @@ product INTEL2 RMH_8          0x800a  Rate Matchi
> >  product INTERBIO IOBOARD   0x1002  IO Board
> >  product INTERBIO MINIIOBOARD       0x1003  Mini IO Board
> >  product INTERBIO MINIIOBOARD2      0x1006  Mini IO Board
> > +product INTERBIO DAPPERMISER       0x2488
> >  
> >  /* Intersil products */
> >  product    INTERSIL PRISM_GT       0x1000  PrismGT USB 2.0 WLAN
> > 
> > results in a usbdevs_data.h entry of
> > 
> >     {
> >         USB_VENDOR_INTERBIO, USB_PRODUCT_INTERBIO_DAPPERMISER,
> >         "",
> >     },
> > 
> > reading usb_subr.c usbd_cache_devinfo() that should work
> > 
> > though if the device doesn't provide a string and we don't either
> > we will print "" instead of "product 0x0x2488"
> 
> The author majbthrd also says all CMSIS-DAP adapters should provide
> "CMSIS-DAP" somewhere in the product string as a way to detect them
> if wanted.
> 
> For something short, he would opt for "Dapper Miser".

Devices are not detected by the string.  The vendor/product is used
instead.

Though I guess who knows what kind of bullshit could happen with libusb
code...

Reply via email to