All of lore.kernel.org
 help / color / mirror / Atom feed
* serial: usb: cdc-acm: OMRON B5L ToF, device probe failed
@ 2022-06-17  4:11 Chris Ruehl
  2022-06-20  2:44 ` Chris Ruehl
  0 siblings, 1 reply; 20+ messages in thread
From: Chris Ruehl @ 2022-06-17  4:11 UTC (permalink / raw)
  To: USB list; +Cc: Oliver Neukum

Hi there,

yet an other cdc-acm which not probed and no /dev/ttyACM0 comes up.

[  539.655588] usb 2-1.4.3: USB disconnect, device number 9
[  568.792182] usb 2-1.4.3: new high-speed USB device number 10 using ehci-pci
[  568.890554] usb 2-1.4.3: New USB device found, idVendor=0590, idProduct=00ca, 
bcdDevice= 2.00
[  568.890562] usb 2-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  568.890566] usb 2-1.4.3: Product: OMRON B5L-001011
[  568.890568] usb 2-1.4.3: Manufacturer: OMRON Corporation
[  568.890571] usb 2-1.4.3: SerialNumber: 010000366A1
[  568.945679] cdc_acm 2-1.4.3:1.0: Zero length descriptor references
[  568.945690] cdc_acm: probe of 2-1.4.3:1.0 failed with error -22
[  568.946477] usbcore: registered new interface driver cdc_acm
[  568.946480] cdc_acm: USB Abstract Control Model driver for USB modems and 
ISDN adapters

so I set the quirk in the cdc-acm.c

  { USB_DEVICE(0x0590, 0x00ca), /* Omron b5l */
      .driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */
  },

and solved the error.

[  724.148131] usbcore: deregistering interface driver cdc_acm
[  725.766219] usb 2-1.4.3: USB disconnect, device number 10
[  757.467770] usb 2-1.4.3: new high-speed USB device number 11 using ehci-pci
[  757.566100] usb 2-1.4.3: New USB device found, idVendor=0590, idProduct=00ca, 
bcdDevice= 2.00
[  757.566109] usb 2-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  757.566113] usb 2-1.4.3: Product: OMRON B5L-001011
[  757.566115] usb 2-1.4.3: Manufacturer: OMRON Corporation
[  757.566117] usb 2-1.4.3: SerialNumber: 010000366A1
[  757.622501] usbcore: registered new interface driver cdc_acm
[  757.622506] cdc_acm: USB Abstract Control Model driver for USB modems and 
ISDN adapters


But the kernel does not create the /dev/ttyACM0.

Kernel is vanilla 5.15.47

lsusb -v get me this.

Bus 002 Device 014: ID 0590:00ca Omron Corp. OMRON B5L-001011
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            2 Communications
   bDeviceSubClass         2 Abstract (modem)
   bDeviceProtocol         0
   bMaxPacketSize0        64
   idVendor           0x0590 Omron Corp.
   idProduct          0x00ca
   bcdDevice            2.00
   iManufacturer           1 OMRON Corporation
   iProduct                2 OMRON B5L-001011
   iSerial                 3 010000366A1
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x002e
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0x80
       (Bus Powered)
     MaxPower                4mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           4
       bInterfaceClass         2 Communications
       bInterfaceSubClass      2 Abstract (modem)
       bInterfaceProtocol      0
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x01  EP 1 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x82  EP 2 IN
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x03  EP 3 OUT
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0040  1x 64 bytes
         bInterval              16
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x84  EP 4 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0040  1x 64 bytes
         bInterval              16
Device Qualifier (for other device speed):
   bLength                10
   bDescriptorType         6
   bcdUSB               2.00
   bDeviceClass            2 Communications
   bDeviceSubClass         2 Abstract (modem)
   bDeviceProtocol         0
   bMaxPacketSize0        64
   bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
   Self Powered


Anything you have in mind?

Thanks
Chris



^ permalink raw reply	[flat|nested] 20+ messages in thread
* serial: usb: cdc-acm: OMRON B5L ToF, device probe failed
@ 2022-06-15  7:25 Chris Ruehl
  0 siblings, 0 replies; 20+ messages in thread
From: Chris Ruehl @ 2022-06-15  7:25 UTC (permalink / raw)
  To: linux-serial

Hi there,

yet an other cdc-acm which not probed and no /dev/ttyACM0 comes up.

[  539.655588] usb 2-1.4.3: USB disconnect, device number 9
[  568.792182] usb 2-1.4.3: new high-speed USB device number 10 using ehci-pci
[  568.890554] usb 2-1.4.3: New USB device found, idVendor=0590, idProduct=00ca, 
bcdDevice= 2.00
[  568.890562] usb 2-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  568.890566] usb 2-1.4.3: Product: OMRON B5L-001011
[  568.890568] usb 2-1.4.3: Manufacturer: OMRON Corporation
[  568.890571] usb 2-1.4.3: SerialNumber: 010000366A1
[  568.945679] cdc_acm 2-1.4.3:1.0: Zero length descriptor references
[  568.945690] cdc_acm: probe of 2-1.4.3:1.0 failed with error -22
[  568.946477] usbcore: registered new interface driver cdc_acm
[  568.946480] cdc_acm: USB Abstract Control Model driver for USB modems and 
ISDN adapters

so I set the quirk in the cdc-acm.c

  { USB_DEVICE(0x0590, 0x00ca), /* Omron b5l */
      .driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */
  },

and solved the error.

[  724.148131] usbcore: deregistering interface driver cdc_acm
[  725.766219] usb 2-1.4.3: USB disconnect, device number 10
[  757.467770] usb 2-1.4.3: new high-speed USB device number 11 using ehci-pci
[  757.566100] usb 2-1.4.3: New USB device found, idVendor=0590, idProduct=00ca, 
bcdDevice= 2.00
[  757.566109] usb 2-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  757.566113] usb 2-1.4.3: Product: OMRON B5L-001011
[  757.566115] usb 2-1.4.3: Manufacturer: OMRON Corporation
[  757.566117] usb 2-1.4.3: SerialNumber: 010000366A1
[  757.622501] usbcore: registered new interface driver cdc_acm
[  757.622506] cdc_acm: USB Abstract Control Model driver for USB modems and 
ISDN adapters


But the kernel does not create the /dev/ttyACM0.

Kernel is vanilla 5.15.47

lsusb -v get me this.

Bus 002 Device 014: ID 0590:00ca Omron Corp. OMRON B5L-001011
Device Descriptor:
   bLength                18
   bDescriptorType         1
   bcdUSB               2.00
   bDeviceClass            2 Communications
   bDeviceSubClass         2 Abstract (modem)
   bDeviceProtocol         0
   bMaxPacketSize0        64
   idVendor           0x0590 Omron Corp.
   idProduct          0x00ca
   bcdDevice            2.00
   iManufacturer           1 OMRON Corporation
   iProduct                2 OMRON B5L-001011
   iSerial                 3 010000366A1
   bNumConfigurations      1
   Configuration Descriptor:
     bLength                 9
     bDescriptorType         2
     wTotalLength       0x002e
     bNumInterfaces          1
     bConfigurationValue     1
     iConfiguration          0
     bmAttributes         0x80
       (Bus Powered)
     MaxPower                4mA
     Interface Descriptor:
       bLength                 9
       bDescriptorType         4
       bInterfaceNumber        0
       bAlternateSetting       0
       bNumEndpoints           4
       bInterfaceClass         2 Communications
       bInterfaceSubClass      2 Abstract (modem)
       bInterfaceProtocol      0
       iInterface              0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x01  EP 1 OUT
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x82  EP 2 IN
         bmAttributes            2
           Transfer Type            Bulk
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0200  1x 512 bytes
         bInterval               0
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x03  EP 3 OUT
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0040  1x 64 bytes
         bInterval              16
       Endpoint Descriptor:
         bLength                 7
         bDescriptorType         5
         bEndpointAddress     0x84  EP 4 IN
         bmAttributes            3
           Transfer Type            Interrupt
           Synch Type               None
           Usage Type               Data
         wMaxPacketSize     0x0040  1x 64 bytes
         bInterval              16
Device Qualifier (for other device speed):
   bLength                10
   bDescriptorType         6
   bcdUSB               2.00
   bDeviceClass            2 Communications
   bDeviceSubClass         2 Abstract (modem)
   bDeviceProtocol         0
   bMaxPacketSize0        64
   bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
   Self Powered


Anything you have in mind?

Thanks
Chris


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-07-20 16:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-17  4:11 serial: usb: cdc-acm: OMRON B5L ToF, device probe failed Chris Ruehl
2022-06-20  2:44 ` Chris Ruehl
2022-06-20  3:35   ` Lars Melin
2022-06-20  6:20     ` Chris Ruehl
2022-06-21  0:38       ` michael.lee
2022-06-21  7:16         ` Greg KH
2022-06-21 10:09         ` Oliver Neukum
2022-06-21 10:44           ` Chris Ruehl
2022-06-23  2:26           ` Chris Ruehl
2022-06-23  8:28             ` Oliver Neukum
2022-06-23  8:44               ` Chris Ruehl
2022-06-23  8:55                 ` Chris Ruehl
2022-06-23  9:39                   ` Oliver Neukum
2022-06-25  2:35                     ` Chris Ruehl
2022-06-25  2:42                       ` Chris Ruehl
2022-06-25  7:32                       ` Greg KH
2022-06-25  7:46                         ` Chris Ruehl
2022-07-20 11:12                   ` Oliver Neukum
2022-07-20 16:24     ` Oliver Neukum
  -- strict thread matches above, loose matches on Subject: below --
2022-06-15  7:25 Chris Ruehl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.