Your message dated Mon, 23 Aug 2010 22:47:07 +0000
with message-id <[email protected]>
and subject line Bug#587776: fixed in usb-modeswitch 1.1.4-1~exp0
has caused the Debian Bug report #587776,
regarding usb-modeswitch: multi-interrupt umts devices patch against 1.1.2-3
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
587776: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=587776
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: usb-modeswitch
Version: 1.1.2-3
Severity: important
*** Please type your report below this line ***
This patch adds functionality to the 1.1.2-3 version of usb-modeswitch:
Multiple interrupt devices as the Olivetti OliCard100 only work reliably
w/ this patch. The gsmmodem link doesn't get set correclty w/o this patch.
Details can be found here:
http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=391&postdays=0&postorder=asc&start=15
-- citation start
[..]
USB_ModeSwitch log from Sun May 23 16:02:19 CEST 2010
symlink call
dirList: {} devices pci0000:00 0000:00:1a.7 usb1 1-3 1-3:1.3 ttyUSB2 tty ttyUSB2
tty: ttyUSB2
ttyNo: 2
Path: /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.3/ttyUSB2/tty/ttyUSB2
ifDir: /sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3
port: ttyUSB2
dev_top: 1-3
className: /sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.3/bInterfaceClass
classType: ff
found INT: /sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.3/ep_84/type
INT-portList: 3
INFO: 2 smaller than or equal to 3
returning symlinkname: gsmmodem2
In the last call (the one for ttyUSB2) here's the correlation between path
element __1.3__/ttyUSB2 and "found INT:
/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:__1.3__/ep_84/type"
[..]
[..] The id in the path name from udev and the one from the lowest found
interrupt must be identical [..]
-- citation end
Unfortunately, upstream only re-implemented half of it in an updated version:
just the lowest found interrupt port is used, no path id correlation is done.
However, at the installations on our sites this correlation is mandatory. W/o
it the link doesn't get set reliably.
The patch correlation has been rejected so far as reports from users
have been received by upstream. Those reports received have not been further
detailed by upstream except that there might be a misleading correlation in
kernels/systems.
We're running on debian, ubuntu and kernels .33.4 and .32.x w/ success, no
such thing as a bad path id correlation occurred to us so far.
It was suggested to report this bug/patch to the dbts as upstream's personality
is objecting further cooperation (see above link ff), this feature however is
required for this device and other users w/ a multi interrupt device might
profit this way.
Thank you.
Cheers,
Nils
--- /lib/udev/usb_modeswitch.orig 2010-05-18 12:01:18.000000000 +0200
+++ /lib/udev/usb_modeswitch 2010-05-23 22:29:44.000000000 +0200
@@ -553,36 +553,52 @@
proc {SymLinkName} {path} {
-# HACK ... /tmp/gsmmodem_* was generated by a switching run before;
-# no way found to signal annother instance in the udev environment
-set tmpname [lindex [glob -nocomplain /tmp/gsmmodem_*] 0]
-set dev_top [lindex [split $tmpname _] 1]
-
set dirList [split $path /]
set idx -1
set idx [lsearch -regexp $dirList {\d+-\d+:\d+\.\d+}]
if {$idx == -1} {
return ""
}
-set ifDir /sys[join [lrange $dirList 0 $idx] /]
-set port [lindex $dirList end]
+# HACK ... /tmp/gsmmodem_* was generated by a switching run before;
+# no way found to signal annother instance in the udev environment
+set tmpname [lindex [glob -nocomplain /tmp/gsmmodem_*] 0]
+set dev_top [lindex [split $tmpname _] 1]
if {![regexp "/$dev_top/" $path]} {
return ""
}
+### Idea is: the lower the tty the better it is: ttyUSB0 is
+### working, ttyUSB4 isn't (holds for devices with more
+### than one interrupt line like olicard100) This doesn't
+### take into account more than one /dev/gsmmodem link.
set symlinkName ""
-foreach epDir [glob -nocomplain $ifDir/ep_*] {
+set usbIds {}
+set devDirBricks [lrange $dirList 0 [expr {$idx-1}]]
+lappend devDirBricks $dev_top
+set ifDirPrefixed /sys[join $devDirBricks /]
+foreach epDir [glob -nocomplain $ifDirPrefixed:\[0-9\].\[0-9\]/ep_*] {
if [file exists $epDir/type] {
set rc [open $epDir/type r]
set type [read $rc]
close $rc
if [regexp {Interrupt} $type] {
- set symlinkName "gsmmodem"
- break
+ lappend usbIds [regsub $ifDirPrefixed:.\.(\[0-9\])/.* $epDir {\1}]
}
}
}
+set minUsbId [lindex [lsort -decreasing $usbIds] end]
+
+### The id from the device on the given usb port (path from udev)
+### and the lowest found interrupt line path id must be identical.
+### This works for 1-interrupt devs like the Onda ZTE MF636 and
+### multi-interrupt devices like the Olivetti Olicard100 sticks.
+set usbPathId [lindex $dirList 6]
+set lastCharUsbPathId [lindex [split $usbPathId .] end]
+if {$lastCharUsbPathId == $minUsbId} {
+ set symlinkName "gsmmodem"
+}
+
cd /dev
set idx 2
set trunkName $symlinkName
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.33.4 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages usb-modeswitch depends on:
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libusb-0.1-4 2:0.1.12-15 userspace USB programming library
ii tcl 8.4.16-2 The Tool Command Language (default
ii tcl8.4 [tclsh] 8.4.19-4 Tcl (the Tool Command Language) v8
ii tcl8.5 [tclsh] 8.5.8-2 Tcl (the Tool Command Language) v8
ii usb-modeswitch-data 20100418-1 mode switching data for usb-modesw
usb-modeswitch recommends no packages.
Versions of packages usb-modeswitch suggests:
ii comgt 0.32-2 Option GlobeTrotter and Vodafone d
ii wvdial 1.60.3 PPP dialer with built-in intellige
--- End Message ---
--- Begin Message ---
Source: usb-modeswitch
Source-Version: 1.1.4-1~exp0
We believe that the bug you reported is fixed in the latest version of
usb-modeswitch, which is due to be installed in the Debian FTP archive:
usb-modeswitch_1.1.4-1~exp0.debian.tar.gz
to main/u/usb-modeswitch/usb-modeswitch_1.1.4-1~exp0.debian.tar.gz
usb-modeswitch_1.1.4-1~exp0.dsc
to main/u/usb-modeswitch/usb-modeswitch_1.1.4-1~exp0.dsc
usb-modeswitch_1.1.4-1~exp0_amd64.deb
to main/u/usb-modeswitch/usb-modeswitch_1.1.4-1~exp0_amd64.deb
usb-modeswitch_1.1.4.orig.tar.bz2
to main/u/usb-modeswitch/usb-modeswitch_1.1.4.orig.tar.bz2
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Didier Raboud <[email protected]> (supplier of updated usb-modeswitch package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 24 Aug 2010 00:07:38 +0200
Source: usb-modeswitch
Binary: usb-modeswitch
Architecture: source amd64
Version: 1.1.4-1~exp0
Distribution: experimental
Urgency: high
Maintainer: Didier Raboud <[email protected]>
Changed-By: Didier Raboud <[email protected]>
Description:
usb-modeswitch - mode switching tool for controlling "flip flop" USB devices
Closes: 587776 590903 591722 591760 591761 591765
Changes:
usb-modeswitch (1.1.4-1~exp0) experimental; urgency=high
.
* New 1.1.4 upstream version; relevant changes:
- The package should work at boot time now (cold and warm);
(Closes: #591765, #591722)
- wrapper fix for the symlink feature: handling of multiple interrupt
ports was incomplete; (Closes: #587776)
- wrapper does not longer use a temporary file for the symlink feature
(security considerations, Marco d'Itri) (Closes: #591761)
- no udev rules grep'ing (Closes: #591760)
.
* Patches:
+ 01_no_bash_before_tcl.patch : add to avoid one more waiting.
+ 02_mp_correct_hyphens.patch: refresh.
+ 03_use_udev_specifics.patch: avoid code duplication by using udev
specific hotplug functions.
.
* Set urgency to high as new upstream fixes security bug.
.
* Correct documentation glitches in debian/README.Debian
(Closes: #590903)
Checksums-Sha1:
756b9c43eea1defa0b18e9e9c76c471f11115b4c 1909 usb-modeswitch_1.1.4-1~exp0.dsc
9fb1c1383c90b9015795229d273d66feaea6f387 37680
usb-modeswitch_1.1.4.orig.tar.bz2
252b7744ba9fb690c48af20e07769305d4d80164 8972
usb-modeswitch_1.1.4-1~exp0.debian.tar.gz
d13630f36619fad1766a70384b88fbcde5aba23d 49712
usb-modeswitch_1.1.4-1~exp0_amd64.deb
Checksums-Sha256:
ffff8fbcc8e291f61cf1691a5ea1a072e88d1d8466211a25dfd5612e1ca8df98 1909
usb-modeswitch_1.1.4-1~exp0.dsc
a2ffe686d482827a82bd584cad42851a9c70dbca39951e90093695dceb03e7df 37680
usb-modeswitch_1.1.4.orig.tar.bz2
9be5a79a3331e4834765c1462d24d9a5797b16df46f59455ef961b652ef25c89 8972
usb-modeswitch_1.1.4-1~exp0.debian.tar.gz
4b292c3b76786a9bc6f55d1d2331df39717101eafd851ef03fa2b32459570627 49712
usb-modeswitch_1.1.4-1~exp0_amd64.deb
Files:
adc8b6ff6afb70042cc73b435d87c859 1909 comm extra
usb-modeswitch_1.1.4-1~exp0.dsc
246b2e0b405a4b99014758e089baa8dd 37680 comm extra
usb-modeswitch_1.1.4.orig.tar.bz2
65597e5cc29bd614d57b0654c9848928 8972 comm extra
usb-modeswitch_1.1.4-1~exp0.debian.tar.gz
1487b38cc626d0efa8e4f71deff88d5c 49712 comm extra
usb-modeswitch_1.1.4-1~exp0_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCAAGBQJMcvZVAAoJENkp8pkr7wozJSUQAMK718THCwxUIUUNUaRIrAmp
Id7YsvctvaCSOrE5VZ7hfopJMzsbS9eBUmBh79OoGAdsqBdc3RGCJQuZUZ4ONEHn
MYEYyN0N9d2IXN6MrMCIKH5wrz5vDUG0Y3ZI8Ws/ys8Idx6LxMWZv79a1H8xb1Ny
gbwh8wnERKDdc9RgVKO6uTzwnkKe5yrkTUpOak59XHwmaEDxpgo/y0ByR2ia2gTU
WfLTpyR3oK123hguj5JH4EXsPSaLMW/qJY7DW1ovtmKX87SKNt9OkvhhPXF3+Zjp
H6Vs6OWQohJrvbruUFfM4E//KdQPL3EXr1sKfoERxsSv5GawciQDi8rbkEUe1jLe
1xWHrWt+XqGntyPDFgYThVNz1PLaJ7+fWZXuYXeGUfA5N6pa4MTdfWS7EeolztR5
F/HQLnwR8h/YpD0N15D5KUyBdWYV0DJjPrtDwh0mo+/+7ljAtHpENmKw4EKLDYta
dNdCcfKGdS6U/Bi4MU6CN4WbmUKQ4lB4z4/OxjZzOm+fOPRzDq9Ck5GbH1uNEZVf
5SuTx4MrzPdafIPag3LyBf5XgD/Yto8u4xtkiqCFcOfebryq/ySov0yLK1tcdvvf
hp846tXMKLSkgyJh0NLoiosYWQWHjPRLlBswbkTQMcT+D4s/SlInL0mSZoMBihvO
GY0Xxjj+pyw5oBuKoVox
=xZT/
-----END PGP SIGNATURE-----
--- End Message ---