Bug 243494

Summary: [PATCH] Add Bitron Video AV2010/10 ZigBee USB Stick to the list of recognized USB devices (uslcom)
Product: Base System Reporter: Oleg Sharoyko <osharoiko>
Component: usbAssignee: Hans Petter Selasky <hselasky>
Status: Closed FIXED    
Severity: Affects Some People CC: hselasky
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Add Bitron Video AV2010/10 ZigBee USB Stick to the list of recognized USB devices none

Description Oleg Sharoyko 2020-01-21 21:49:52 UTC
Created attachment 210934 [details]
Add Bitron Video AV2010/10 ZigBee USB Stick to the list of recognized USB devices

Hello,

Would you please apply the patch attached so that uslcom would recognize this device.

Thank you!
Comment 1 Hans Petter Selasky freebsd_committer freebsd_triage 2020-01-21 22:10:19 UTC
Can you show the output from usbconfig dump_device_desc for this device?

--HPS
Comment 2 Oleg Sharoyko 2020-01-21 22:14:05 UTC
Sure:

% sudo usbconfig -d ugen0.2 dump_all_config_desc
ugen0.2: <Silicon Labs BV 2010/10> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)


 Configuration index 0

    bLength = 0x0009 
    bDescriptorType = 0x0002 
    wTotalLength = 0x0020 
    bNumInterfaces = 0x0001 
    bConfigurationValue = 0x0001 
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0080 
    bMaxPower = 0x0032 

    Interface 0
      bLength = 0x0009 
      bDescriptorType = 0x0004 
      bInterfaceNumber = 0x0000 
      bAlternateSetting = 0x0000 
      bNumEndpoints = 0x0002 
      bInterfaceClass = 0x00ff  <Vendor specific>
      bInterfaceSubClass = 0x0000 
      bInterfaceProtocol = 0x0000 
      iInterface = 0x0002  <BV 2010/10>

     Endpoint 0
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0001  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0040 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000 

     Endpoint 1
        bLength = 0x0007 
        bDescriptorType = 0x0005 
        bEndpointAddress = 0x0082  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0040 
        bInterval = 0x0000 
        bRefresh = 0x0000 
        bSynchAddress = 0x0000
Comment 3 Oleg Sharoyko 2020-01-21 22:17:24 UTC
Sorry, that was all_config_desc, here's device_desc:

% sudo usbconfig -d ugen0.2 dump_device_desc    
ugen0.2: <Silicon Labs BV 2010/10> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x10c4 
  idProduct = 0x8b34 
  bcdDevice = 0x0100 
  iManufacturer = 0x0001  <Silicon Labs>
  iProduct = 0x0002  <BV 2010/10>
  iSerialNumber = 0x0003  <0118DB77>
  bNumConfigurations = 0x0001
Comment 4 Hans Petter Selasky freebsd_committer freebsd_triage 2020-01-21 22:28:47 UTC
Thank you!

--HPS
Comment 5 commit-hook freebsd_committer freebsd_triage 2020-01-21 22:29:16 UTC
A commit references this bug:

Author: hselasky
Date: Tue Jan 21 22:28:16 UTC 2020
New revision: 356952
URL: https://svnweb.freebsd.org/changeset/base/356952

Log:
  Add new USB ID to uslcom(4).

  Submitted by:	Oleg Sharoyko <osharoiko@gmail.com>
  PR:		243494
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Changes:
  head/sys/dev/usb/serial/uslcom.c
  head/sys/dev/usb/usbdevs
Comment 6 commit-hook freebsd_committer freebsd_triage 2020-02-03 10:50:19 UTC
A commit references this bug:

Author: hselasky
Date: Mon Feb  3 10:49:18 UTC 2020
New revision: 357430
URL: https://svnweb.freebsd.org/changeset/base/357430

Log:
  MFC r356952:
  Add new USB ID to uslcom(4).

  Submitted by:	Oleg Sharoyko <osharoiko@gmail.com>
  PR:		243494
  Sponsored by:	Mellanox Technologies

Changes:
_U  stable/12/
  stable/12/sys/dev/usb/serial/uslcom.c
  stable/12/sys/dev/usb/usbdevs
Comment 7 commit-hook freebsd_committer freebsd_triage 2020-02-03 10:50:20 UTC
A commit references this bug:

Author: hselasky
Date: Mon Feb  3 10:50:06 UTC 2020
New revision: 357431
URL: https://svnweb.freebsd.org/changeset/base/357431

Log:
  MFC r356952:
  Add new USB ID to uslcom(4).

  Submitted by:	Oleg Sharoyko <osharoiko@gmail.com>
  PR:		243494
  Sponsored by:	Mellanox Technologies

Changes:
_U  stable/11/
  stable/11/sys/dev/usb/serial/uslcom.c
  stable/11/sys/dev/usb/usbdevs
Comment 8 commit-hook freebsd_committer freebsd_triage 2020-02-03 10:51:21 UTC
A commit references this bug:

Author: hselasky
Date: Mon Feb  3 10:50:53 UTC 2020
New revision: 357432
URL: https://svnweb.freebsd.org/changeset/base/357432

Log:
  MFC r356952:
  Add new USB ID to uslcom(4).

  Submitted by:	Oleg Sharoyko <osharoiko@gmail.com>
  PR:		243494
  Sponsored by:	Mellanox Technologies

Changes:
_U  stable/10/
  stable/10/sys/dev/usb/serial/uslcom.c
  stable/10/sys/dev/usb/usbdevs