Le Sun, Nov 10, 2002, � 11:49:54AM +0100, Cyrille Chepelov a �crit:

> Nov 10 11:24:13 muscat kernel: drivers/usb/image/scanner.c: probe_scanner: User 
>specified USB scanner -- Vendor:Product - 4b8:10b
> Nov 10 11:24:13 muscat kernel: drivers/usb/image/scanner.c: probe_scanner: 
>Undetected endpoint -- consult Documentation/usb/scanner.txt.
> Nov 10 11:24:13 muscat kernel: drivers/usb/core/usb.c: registered new driver 
>usbscanner
> Nov 10 11:24:13 muscat kernel: drivers/usb/image/scanner.c: 0.4.6:USB Scanner Driver
> 
> The problem is the second line "Undetected endpoint". What the hell? Things 
> were working mostly fine with 2.4.20-pre7. Why did 2.5 break that? 

I have more details. I added this:

    info("probe_scanner: have_bulk_in=%u have_bulk_out=%u have_intr=%u",
        have_bulk_in,have_bulk_out,have_intr);    
    info("probe_scanner: ep_cnt=%u 
endpoint={len=%u,dtype=%02x,ep_addr=%02x,attr=%02x,packsize=%04x,interv=%02x}",
        ep_cnt,endpoint[ep_cnt].bLength,         endpoint[ep_cnt].bDescriptorType,
        endpoint[ep_cnt].bEndpointAddress,         endpoint[ep_cnt].bmAttributes,
        endpoint[ep_cnt].wMaxPacketSize,         endpoint[ep_cnt].bInterval);
just before 
        info("probe_scanner: Undetected endpoint -- consult
                        Documentation/usb/scanner.txt.");
and now I see that when I insmod scanner.o:

Nov 10 12:06:58 muscat kernel: drivers/usb/image/scanner.c: probe_scanner: 
have_bulk_in=1 have_bulk_out=0 have_intr=0Nov 10 12:06:58 muscat kernel: 
drivers/usb/image/scanner.c: probe_scanner: ep_cnt=1 
endpoint={len=0,dtype=00,ep_addr=00,attr=00,packsize=0000,interv=00}
Nov 10 12:06:58 muscat kernel: drivers/usb/image/scanner.c: probe_scanner: Undetected 
endpoint -- consult Documentation/usb/scanner.txt.

lsusb output attached


        -- Cyrille

-- 
30-10 !
Bus 002 Device 002: ID 04b8:010b Seiko Epson Corp. Perfection 1240
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass       255 Vendor Specific Subclass
  bDeviceProtocol       255 Vendor Specific Protocol
  bMaxPacketSize0        64
  idVendor           0x04b8 Seiko Epson Corp.
  idProduct          0x010b Perfection 1240
  bcdDevice            1.04
  iManufacturer           1 EPSON
  iProduct                2 Perfection1240
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
  Language IDs: (length=4)
     0409 English(US)

Bus 002 Device 001: ID 0000:0000 Virtual Hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0000 Virtual
  idProduct          0x0000 Hub
  bcdDevice            2.05
  iManufacturer           3 Linux 2.5.46 uhci-hcd
  iProduct                2 VIA Technologies, Inc. USB (#2)
  iSerial                 1 00:07.3
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          2
        bInterval             255
  Language IDs: (length=4)
     0409 English(US)

Bus 001 Device 001: ID 0000:0000 Virtual Hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x0000 Virtual
  idProduct          0x0000 Hub
  bcdDevice            2.05
  iManufacturer           3 Linux 2.5.46 uhci-hcd
  iProduct                2 VIA Technologies, Inc. USB
  iSerial                 1 00:07.2
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          2
        bInterval             255
  Language IDs: (length=4)
     0409 English(US)

Reply via email to