Hi,

we have an USB modem which leads to all sort of funny errors in dmesg
when I try to access it via the usbdevfs nodes in /proc/bus/usb/*/*.
hotplug as example does that and the result is that it becomes unusable
with the normal hotplug package.

It seems to work fine when I do a "insmod usbcore;insmode usb-uhci;
mount usbdevfs;insmod acm":

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 15:42:34 Feb  7 2002
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0x6800, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
hub.c: USB new device connect on bus1/2, assigned device number 2
usb.c: USB device 2 (vend/prod 0x4c1/0x82) is not claimed by any active
driver.
usb.c: registered new driver acm
acm.c: probing config 1
ttyACM0: USB ACM device
acm.c: acm_control_msg: rq: 0x22 val: 0x0 len: 0x0 result: 0
acm.c: acm_control_msg: rq: 0x20 val: 0x0 len: 0x7 result: 7
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN
adapters


Now I can use "screen /dev/ttyACM0 57600" and everything works as
expected. However, if I run "usbmodules --device /proc/bus/usb/001/002"
I get these error messages:


usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 --
tmo 20
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 --
tmo 20
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 --
tmo 20
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 --
tmo 20


Ugh, and now after the reboot it starts to behave funny as soon as I
start the first usbmodules call:

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 15:42:34 Feb  7 2002
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0x6800, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
hub.c: USB new device connect on bus1/2, assigned device number 2
usb.c: USB device 2 (vend/prod 0x4c1/0x82) is not claimed by any active
driver.
usb.c: registered new driver acm
acm.c: probing config 1
ttyACM0: USB ACM device
acm.c: acm_control_msg: rq: 0x22 val: 0x0 len: 0x0 result: 0
acm.c: acm_control_msg: rq: 0x20 val: 0x0 len: 0x7 result: 7
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN
adapters
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 --
tmo 20
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 --
tmo 20
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 --
tmo 20
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 --
tmo 20
usb-uhci.c: interrupt, status 2, frame# 731
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 39 ret -75 --
tmo 20
usb.c: USB disconnect on device 2
hub.c: USB new device connect on bus1/2, assigned device number 3
usb_control/bulk_msg: timeout
usb.c: USB device not accepting new address=3 (error=-110)
hub.c: USB new device connect on bus1/2, assigned device number 4
usb_control/bulk_msg: timeout
usb.c: USB device not accepting new address=4 (error=-110)

This is the way to reproduce:

pegasus:~ # insmod usbcore
Using /lib/modules/2.4.17-olaf-4GB/kernel/drivers/usb/usbcore.o
pegasus:~ # insmod usb-uhci
Using /lib/modules/2.4.17-olaf-4GB/kernel/drivers/usb/usb-uhci.o
pegasus:~ # mount usbdevfs
pegasus:~ # usbmodules --device /proc/bus/usb/001/002 
Warning: invalid config descriptor
cannot get config descriptor 0, Value too large for defined data type (75)
pegasus:~ # dmesg | tail
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 -- tmo 20
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 -- tmo 20
usb_control/bulk_msg: timeout
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 9 ret -110 -- tmo 20
usb-uhci.c: interrupt, status 2, frame# 1877
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 39 ret -75 -- tmo 20
usb.c: USB disconnect on device 2
hub.c: USB new device connect on bus1/2, assigned device number 3


tmo in drivers/usb/devio.c:proc_control() is normally 10.

pegasus:~ # diff -u devices-after.txt devices-usbmodules.txt 
--- devices-after.txt   Fri Feb  8 12:03:18 2002
+++ devices-usbmodules.txt      Fri Feb  8 12:06:57 2002
@@ -7,15 +7,3 @@
 C:* #Ifs= 1 Cfg#= 1 Atr=40 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=   8 Ivl=255ms
-T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
-D:  Ver= 1.00 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
-P:  Vendor=04c1 ProdID=0082 Rev= 9.24
-S:  Manufacturer=3Com Inc.
-S:  Product=3Com OfficeConnect Analog Modem
-S:  SerialNumber=23VDBB39BOOS
-C:* #Ifs= 2 Cfg#= 1 Atr=60 MxPwr=  0mA
-I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=acm
-E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=128ms
-I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=acm
-E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
-E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms


Any ideas whats wrong with that device? I see that "bug" since 2.4.7, 
this test was done with 2.4.18-pre8.

This is an AMD k6 400.
pegasus:~ # lspci  
00:00.0 Host bridge: VIA Technologies, Inc. VT82C598 [Apollo MVP3] (rev 04)
00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C586/A/B PCI-to-ISA [Apollo VP] (rev 47)
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 02)
00:07.3 Host bridge: VIA Technologies, Inc. VT82C586B ACPI (rev 10)
00:09.0 Network controller: Dynalink IS64PH ISDN Adapter
00:0a.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
00:0a.1 Input device controller: Creative Labs SB Live! (rev 07)
00:0b.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
00:0c.0 Ethernet controller: VIA Technologies, Inc. Ethernet Controller (rev 43)
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage IIC AGP (rev 7a)



Gruss Olaf

-- 
 $ man clone

BUGS
       Main feature not yet implemented...

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to