Package: libusb-0.1-4
Version: 2:0.1.12-5
Severity: important

Hi all,
I am testing usb on SGI O2 (mips cpu, 64 bits kernel, 32 bits userland). This 
is something new and I am trying to document a problem with USB and libusb.

Using latest kernel from experimental 2.6.26-1-r5k-ip32 (previouses kernels did 
not support USB at all), we got many CONFIG_USB built into the kernel or as 
modules.
Actually, I may use storage devices without any problem, but I cannot access 
devices via libusb.
This means that "lsusb" tool does not list any device (beside internal hubs), 
while application like "sane" cannot access usb scanners via libusb.

Please find attached what happens when I plug a 512Mb pendrive and then I 
replace it with a scanner.
Kernel correctly manage the usb insertion/detection/removal, while libusb 
always display and empty list.
Please also notice that /proc/bus/usb/devices correctly report all plugged 
devices.
Moreover, when I plug in the scanner USB cable, udev detect it and change 
ownership of /dev/bus/usb/???/???.

I recompiled more recent packages than what were shipped with etch, but I get 
the same behaviour. I used:
libusb 2:0.1.12-12
udev 0.114-2
libsane 1.0.19-16
libsepol 2.0.30-2
libselinux 2.0.65-4

Thanks for your help,
Giuseppe

[EMAIL PROTECTED]:~$ sudo su -
Password:
sgi:~# tail -f /var/log/syslog&
[1] 9348
sgi:~#
Aug  4 19:11:22 sgi kernel: [17182202.312000] usb 3-2: new high speed USB 
device using ehci_hcd and address 3
Aug  4 19:11:22 sgi kernel: [17182202.460000] usb 3-2: configuration #1 chosen 
from 1 choice
Aug  4 19:11:22 sgi kernel: [17182202.468000] hub 3-2:1.0: USB hub found
Aug  4 19:11:22 sgi kernel: [17182202.468000] hub 3-2:1.0: 1 port detected
Aug  4 19:11:22 sgi kernel: [17182202.588000] usb 3-2: New USB device found, 
idVendor=067b, idProduct=2515
Aug  4 19:11:22 sgi kernel: [17182202.588000] usb 3-2: New USB device strings: 
Mfr=1, Product=3, SerialNumber=0
Aug  4 19:11:22 sgi kernel: [17182202.588000] usb 3-2: Product: USB Embedded Hub
Aug  4 19:11:22 sgi kernel: [17182202.588000] usb 3-2: Manufacturer: Prolific 
Technology Inc.
Aug  4 19:11:22 sgi kernel: [17182202.796000] usb 3-2.1: new high speed USB 
device using ehci_hcd and address 4
Aug  4 19:11:22 sgi kernel: [17182202.908000] usb 3-2.1: configuration #1 
chosen from 1 choice
Aug  4 19:11:22 sgi kernel: [17182202.916000] usb 3-2.1: New USB device found, 
idVendor=067b, idProduct=2517
Aug  4 19:11:22 sgi kernel: [17182202.916000] usb 3-2.1: New USB device 
strings: Mfr=1, Product=4, SerialNumber=0
Aug  4 19:11:22 sgi kernel: [17182202.916000] usb 3-2.1: Product: USB Mass 
Storage Device
Aug  4 19:11:22 sgi kernel: [17182202.916000] usb 3-2.1: Manufacturer: Prolific 
Technology Inc.
Aug  4 19:11:24 sgi kernel: [17182204.684000] Initializing USB Mass Storage 
driver...
Aug  4 19:11:24 sgi kernel: [17182204.720000] scsi2 : SCSI emulation for USB 
Mass Storage devices
Aug  4 19:11:24 sgi kernel: [17182204.728000] usbcore: registered new interface 
driver usb-storage
Aug  4 19:11:24 sgi kernel: [17182204.728000] USB Mass Storage support 
registered.
Aug  4 19:11:24 sgi kernel: [17182204.748000] usb-storage: device found at 4
Aug  4 19:11:24 sgi kernel: [17182204.748000] usb-storage: waiting for device 
to settle before scanning
Aug  4 19:11:29 sgi kernel: [17182209.748000] usb-storage: device scan complete
Aug  4 19:11:29 sgi kernel: [17182209.752000] scsi 2:0:0:0: Direct-Access     
Prolific USB Flash Disk   P1.0 PQ: 0 ANSI: 0 CCS
Aug  4 19:11:29 sgi kernel: [17182209.788000] sd 2:0:0:0: [sdc] 1024000 
512-byte hardware sectors (524 MB)
Aug  4 19:11:29 sgi kernel: [17182209.788000] sd 2:0:0:0: [sdc] Write Protect 
is off
Aug  4 19:11:29 sgi kernel: [17182209.788000] sd 2:0:0:0: [sdc] Mode Sense: 00 
06 00 00
Aug  4 19:11:29 sgi kernel: [17182209.788000] sd 2:0:0:0: [sdc] Assuming drive 
cache: write through
Aug  4 19:11:29 sgi kernel: [17182209.800000] sd 2:0:0:0: [sdc] 1024000 
512-byte hardware sectors (524 MB)
Aug  4 19:11:29 sgi kernel: [17182209.804000] sd 2:0:0:0: [sdc] Write Protect 
is off
Aug  4 19:11:29 sgi kernel: [17182209.804000] sd 2:0:0:0: [sdc] Mode Sense: 00 
06 00 00
Aug  4 19:11:29 sgi kernel: [17182209.804000] sd 2:0:0:0: [sdc] Assuming drive 
cache: write through
Aug  4 19:11:29 sgi kernel: [17182209.804000]  sdc:
Aug  4 19:11:29 sgi kernel: [17182209.924000] sd 2:0:0:0: [sdc] Attached SCSI 
removable disk
Aug  4 19:11:29 sgi kernel: [17182209.924000] sd 2:0:0:0: Attached scsi generic 
sg3 type 0

sgi:~# lsusb
Bus 003 Device 001: ID 1d6b:0001  
Bus 001 Device 001: ID 1d6b:0001  
Bus 002 Device 001: ID 1d6b:0001  

sgi:~# cat /proc/partitions 
major minor  #blocks  name

   8     0   71819496 sda
   8     1   71810550 sda1
   8     9       2048 sda9
   8    11   71818582 sda11
   8    16   17847430 sdb
   8    17    1019904 sdb1
   8    18   16822272 sdb2
   8    25       5120 sdb9
   8    27   17847296 sdb11
 254     0     262144 dm-0
   8    32     512000 sdc

sgi:~# Aug  4 19:13:40 sgi kernel: [17182340.424000] usb 3-2: USB disconnect, 
address 3
Aug  4 19:13:40 sgi kernel: [17182340.424000] usb 3-2.1: USB disconnect, 
address 4
Aug  4 19:13:45 sgi kernel: [17182345.804000] usb 3-2: new high speed USB 
device using ehci_hcd and address 5
Aug  4 19:13:45 sgi kernel: [17182345.964000] usb 3-2: configuration #1 chosen 
from 1 choice
Aug  4 19:13:45 sgi kernel: [17182345.976000] usb 3-2: New USB device found, 
idVendor=04b8, idProduct=011f
Aug  4 19:13:45 sgi kernel: [17182345.976000] usb 3-2: New USB device strings: 
Mfr=1, Product=2, SerialNumber=0
Aug  4 19:13:45 sgi kernel: [17182345.976000] usb 3-2: Product: EPSON Scanner
Aug  4 19:13:45 sgi kernel: [17182345.976000] usb 3-2: Manufacturer: EPSON

sgi:~# lsusb
Bus 003 Device 001: ID 1d6b:0001  
Bus 001 Device 001: ID 1d6b:0001  
Bus 002 Device 001: ID 1d6b:0001  

sgi:~# lspci
00:01.0 SCSI storage controller: Adaptec AIC-7880U
00:02.0 SCSI storage controller: Adaptec AIC-7880U
00:03.0 PCI bridge: NetMos Technology Unknown device 9250 (rev 01)
01:08.0 USB Controller: NEC Corporation USB (rev 43)
01:08.1 USB Controller: NEC Corporation USB (rev 43)
01:08.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
01:09.0 FireWire (IEEE 1394): Agere Systems FW323 (rev 61)
01:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit 
Ethernet (rev 10)

sgi:~# mount | grep usb
none on /proc/bus/usb type usbfs (rw)
sgi:~# cat /proc/bus/usb/devices 

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 3
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.26-1-r5k-ip32 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:01:08.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  5 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs=  1
P:  Vendor=04b8 ProdID=011f Rev=91.67
S:  Manufacturer=EPSON
S:  Product=EPSON Scanner
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=4096ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.26-1-r5k-ip32 ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:01:08.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 2.06
S:  Manufacturer=Linux 2.6.26-1-r5k-ip32 ohci_hcd
S:  Product=OHCI Host Controller
S:  SerialNumber=0000:01:08.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

sgi:/usr/local/src# ls -l /dev/bus/usb/003/002
crw-rw-r-- 1 root scanner 189, 1 2008-08-04 18:33 /dev/bus/usb/003/002



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to