Your message dated Mon, 30 Aug 2010 18:17:22 +0000
with message-id <[email protected]>
and subject line Bug#587776: fixed in usb-modeswitch 1.1.4-1
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

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.debian.tar.gz
  to main/u/usb-modeswitch/usb-modeswitch_1.1.4-1.debian.tar.gz
usb-modeswitch_1.1.4-1.dsc
  to main/u/usb-modeswitch/usb-modeswitch_1.1.4-1.dsc
usb-modeswitch_1.1.4-1_amd64.deb
  to main/u/usb-modeswitch/usb-modeswitch_1.1.4-1_amd64.deb



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: Mon, 30 Aug 2010 18:30:37 +0200
Source: usb-modeswitch
Binary: usb-modeswitch
Architecture: source amd64
Version: 1.1.4-1
Distribution: unstable
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) unstable; urgency=low
 .
   * Patches:
     + 04_use_var_lib_not_etc.patch : Add to put runtime files in /var/lib.
 .
   * Release to unstable, thanks to the Release Team approval.
 .
 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: 
 960633fd8633daf9241a4a223930cc364bb2be2d 1889 usb-modeswitch_1.1.4-1.dsc
 59599a583d188508c5d2f33f3e3a2fdd609a9f4b 9553 
usb-modeswitch_1.1.4-1.debian.tar.gz
 789159bd534a24777e9e7e5697c57bbc649159c4 49836 usb-modeswitch_1.1.4-1_amd64.deb
Checksums-Sha256: 
 7528f4b870be98c7235c719b1420ebe42ddda6d9e8854678e9ebb9a780cac173 1889 
usb-modeswitch_1.1.4-1.dsc
 6f0fa088a88112c4cad4beefb471e8eb5f25124f5786c9066acaeb94c8308e82 9553 
usb-modeswitch_1.1.4-1.debian.tar.gz
 887bd3ad6173c2a9ff925915a31bfa28dcef2bc2a75942095583475d237fcb25 49836 
usb-modeswitch_1.1.4-1_amd64.deb
Files: 
 f0c79ac6b149753f85a292a52d10887d 1889 comm extra usb-modeswitch_1.1.4-1.dsc
 483ced002f10cd2a5c9aaf697cb4851e 9553 comm extra 
usb-modeswitch_1.1.4-1.debian.tar.gz
 0856f9bda4782dd76972b940f34f58f2 49836 comm extra 
usb-modeswitch_1.1.4-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJMe/OjAAoJENkp8pkr7wozMnQQAKTnaQYYsNXJ1CHWd18p8pkS
lOCMREv0XVoqK+F9udXRs3oS97jvCBhZjh7TYa2up5p+FJfEATw69acbyElxLxCZ
KdcL4g1yZbXMF5KfHCcZLzbmF5vO7/lBmcKAM6Ahq32T9kPrbVWkyQ1FkDR5aBwi
PhaPbSrxDfn5lQii1ccgveu2VMoUdhLHzTGdQ9T7bKZmjvRxfEB+crewdtfwmmqm
8a+BfrNZNpmCn2Kjsg0LiYZdXQbfRx40dm/qnO0Olwcz86VfmPsg9cIprF3z/+ia
0a8DYoaNV8+FiMeOj1EATjuxb9QXk1Ro0H115jTPWM4sz2gyx4tSIQ5zNkCoTUPy
6NjtzQy8pzBrm4xNi0+u8MChgv5e9TGMYJr8WdIhAslzZa2IQb2FbiodPMYNAetk
nelBqIT+9cu7ngQH0gGZ92BfRJ6PF+/HtNO1JG+SelsRHoK5hVCz7i1I5HscHELI
hh1U3BAhJgx8KqsOvaObblL/SRuQwojVRREGgFSaGSgOSO+iiaKAImsDRhjNRqM2
q9tXZk0CLhkusVkARSHAsNgNk+iN8N8ZSz1qyIK+qsy6068upGWO4AG7TX5Hj2NC
vyDsHBIlKJCVEh3w2YycMuHePXX88eFZzbtkzx/N4ZTMMmKxxvkJ/P7+dZhUP3aj
L68mHexLsVijhXjPEMZ7
=dQa8
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to