Am 16.05.2014 13:10, schrieb David Coppa:
> On Fri, May 16, 2014 at 1:02 PM, Łukasz Ratajski
> <lukasz.rataj...@t-online.de> wrote:
>> Attached is a diff for umsm+man page which enables support for the
>> Alcatel OneTouch L100V USB 2G/3G/LTE modem, known in Germany as Telekom
>> SpeedStick LTE II.
>>
>> The storage part has to be ejected first. Connectivity tested with
>> userland ppp on amd64. Patch is against 5.5-STABLE.
> 
> Is it ejecting automatically?
> I mean, is this using "{{ USB_VENDOR_TCTMOBILE,
> USB_PRODUCT_TCTMOBILE_UMASS }, DEV_UMASS3}" ?
> 
> If so, then it's ok with me.

I had to eject the umass part manually in order to access the modem.
Now, after some inspection, I am certain that I found the solution.
After manual ejection the usbdevs output changed as following:

- port 5 addr 3: high speed, power 500 mA, config 1, Mobile Broad
Band(0xf017), USBModem(0x1bbb), rev 0.00
+ port 5 addr 3: high speed, power 500 mA, config 1, Mobile Broad
Band(0x011e), USBModem(0x1bbb), rev 0.00

Apparently the umass device uses a different product ID, so I decided to
add it to usbdevs, and change umsm.c accordingly. Plugged in, and dmesg
shows this (without any manual interaction):

umsm0 at uhub0 port 5 configuration 1 interface 0 "USBModem Mobile Broad
Band" rev 2.00/0.00 addr 3
umsm1 at uhub0 port 5 configuration 1 interface 1 "USBModem Mobile Broad
Band" rev 2.00/0.00 addr 3
umsm0 detached
umsm1 detached
umsm0 at uhub0 port 5 configuration 1 interface 0 "USBModem Mobile Broad
Band" rev 2.00/0.00 addr 3
ucom0 at umsm0
umsm1 at uhub0 port 5 configuration 1 interface 1 "USBModem Mobile Broad
Band" rev 2.00/0.00 addr 3
ucom1 at umsm1
umass1 at uhub0 port 5 configuration 1 interface 2 "USBModem Mobile
Broad Band" rev 2.00/0.00 addr 3
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd2 at scsibus3 targ 1 lun 0: <USBModem, MMC Storage, 2.31> SCSI2
0/direct removable
umsm2 at uhub0 port 5 configuration 1 interface 3 "USBModem Mobile Broad
Band" rev 2.00/0.00 addr 3
ucom2 at umsm2
umsm3 at uhub0 port 5 configuration 1 interface 4 "USBModem Mobile Broad
Band" rev 2.00/0.00 addr 3
ucom3 at umsm3

Firing up ppp confirmed that it's working. Here is the revised patch:

Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.96
diff -u -p -u -p -r1.96 umsm.c
--- umsm.c      13 Dec 2013 17:43:07 -0000      1.96
+++ umsm.c      16 May 2014 13:08:42 -0000
@@ -249,8 +249,10 @@ static const struct umsm_type umsm_devs[
        {{ USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC8355}, 0},

        {{ USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_UMASS }, DEV_UMASS3},
+       {{ USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_UMASS_2 }, DEV_UMASS3},
        {{ USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_UMSM }, 0},
        {{ USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_UMSM_2 }, 0},
+       {{ USB_VENDOR_TCTMOBILE, USB_PRODUCT_TCTMOBILE_UMSM_3 }, 0},

        {{ USB_VENDOR_TOSHIBA, USB_PRODUCT_TOSHIBA_HSDPA }, 0},

Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.623
diff -u -p -u -p -r1.623 usbdevs
--- usbdevs     15 Feb 2014 02:16:57 -0000      1.623
+++ usbdevs     16 May 2014 13:08:42 -0000
@@ -3969,7 +3969,9 @@ product SYNTECH CIPHERLAB100      0x1000  Ciph
 /* TCT Mobile products */
 product TCTMOBILE UMSM         0x0000  Modem mode
 product TCTMOBILE UMSM_2       0x0017  Modem mode
+product TCTMOBILE UMSM_3       0x011e  Modem mode
 product TCTMOBILE UMASS                0xf000  Storage mode
+product TCTMOBILE UMASS_2      0xf017  Storage mode

 /* Tangtop products */
 product TANGTOP USBPS2         0x0001  USBPS2
Index: umsm.4
===================================================================
RCS file: /cvs/src/share/man/man4/umsm.4,v
retrieving revision 1.88
diff -u -p -u -p -r1.88 umsm.4
--- umsm.4      16 Jul 2013 16:05:49 -0000      1.88
+++ umsm.4      16 May 2014 10:20:42 -0000
@@ -37,6 +37,7 @@ driver:
 .Bl -column "Medion Mobile S4012 (Huawei E1550 OEM)" "Bus" -offset 6n
 .It Em Device Ta Em Bus
 .It Li "AirPrime PC5220" Ta "CardBus"
+.It Li "Alcatel One Touch L100V" Ta "USB"
 .It Li "Alcatel One Touch X060" Ta "USB"
 .It Li "Alcatel One Touch X200" Ta "USB"
 .It Li "Alcatel One Touch X210" Ta "USB"

-- 
PGP Key 0x7F0B40F4 | 9E98 D004 EEF8 1B49 38DD  AE51 162A 0644 7F0B 40F4

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to