Re: huawei_cdc_ncm driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thomas Schäfer <tschaefer@xxxxxxxxxxx> writes:

> Hi, 
>
> I know that next-kernel may not stable/work. But for your information.
>
> I tried 3.12.0-next-20131107-1-vanilla (next repository from Suse, because compiling needs time and patience :-))
>
> Two devices which worked with cdc_ncm now changed to huawei_cdc_ncm. So far so ok.
>
> But: E5776-s-32 (local name here "Speedbox LTE mini") does not work anymore via USB-cable:
>
> dmesg 
> [ 2826.012219] usb 5-1: new high-speed USB device number 8 using ehci-pci
> [ 2826.145639] usb 5-1: New USB device found, idVendor=12d1, idProduct=1506
> [ 2826.145658] usb 5-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
> [ 2826.145669] usb 5-1: Product: HUAWEI Mobile
> [ 2826.145678] usb 5-1: Manufacturer: HUAWEI Technology
> [ 2826.152083] option 5-1:1.0: GSM modem (1-port) converter detected
> [ 2826.152490] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB0
> [ 2826.155877] huawei_cdc_ncm 5-1:1.1: MAC-Address: 0c:5b:8f:27:9a:64
> [ 2826.156234] huawei_cdc_ncm 5-1:1.1: cdc-wdm0: USB WDM device
> [ 2826.156867] huawei_cdc_ncm 5-1:1.1 wwan0: register 'huawei_cdc_ncm' at usb-0000:00:1d.7-1, Huawei CDC NCM device, 0c:5b:8f:27:9a:64
> [ 2826.157098] usb-storage 5-1:1.2: USB Mass Storage device detected
> [ 2826.158778] scsi12 : usb-storage 5-1:1.2
> [ 2826.159371] usb-storage 5-1:1.3: USB Mass Storage device detected
> [ 2826.159657] scsi13 : usb-storage 5-1:1.3
> [ 2827.157269] scsi 12:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
> [ 2827.157816] scsi 13:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
> [ 2827.162841] sd 13:0:0:0: Attached scsi generic sg1 type 0
> [ 2827.164308] sr0: scsi-1 drive
> [ 2827.165040] sr 12:0:0:0: Attached scsi CD-ROM sr0
> [ 2827.165397] sd 13:0:0:0: [sdb] Attached SCSI removable disk
> [ 2827.165564] sr 12:0:0:0: Attached scsi generic sg2 type 5
>
>
> dhcp does not work 
>
> dhcpcd  wwan0
> err, wwan0: timed out
> warn, wwan0: using IPV4LL address 169.254.243.114
>
>
> The second device with problems is  Huawei E3276 (Speedstick LTE III, Telekom, no Hilink, but ipv6-cabable version) 
> This device worked before with SLAAC, now with -next-20131107 it doesn't.

Ouch.  I noticed after submitting this driver that it probably has some
flawed logic wrt carrier detection.  I wonder if this patch makes any
difference (yes, just delete that line):


diff --git a/drivers/net/usb/huawei_cdc_ncm.c b/drivers/net/usb/huawei_cdc_ncm.c
index 312178d7b698..a2ae8318fe75 100644
--- a/drivers/net/usb/huawei_cdc_ncm.c
+++ b/drivers/net/usb/huawei_cdc_ncm.c
@@ -189,7 +189,6 @@ static const struct driver_info huawei_cdc_ncm_info = {
 	.flags = FLAG_NO_SETINT | FLAG_MULTI_PACKET | FLAG_WWAN,
 	.bind = huawei_cdc_ncm_bind,
 	.unbind = huawei_cdc_ncm_unbind,
-	.check_connect = huawei_cdc_ncm_check_connect,
 	.manage_power = huawei_cdc_ncm_manage_power,
 	.rx_fixup = cdc_ncm_rx_fixup,
 	.tx_fixup = cdc_ncm_tx_fixup,




Bjørn
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux