mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Possible issue with pcmcia data card since 2.6.27 kernel
@ 2010-04-13 18:44 Paweł Drobek
  2010-04-14 19:36 ` [PATCH] usb-serial: add ID for ZTE MF 330 Dominik Brodowski
  0 siblings, 1 reply; 2+ messages in thread
From: Paweł Drobek @ 2010-04-13 18:44 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 4469 bytes --]

[1.] ZTE MF 330 as modem, not as usb 2.0 hub
--------------------------------------------
[2.] Since 2.6.27-r7 there is support for this pcmcia data card by usbserial
 module. In option.c file there isn't correct ID for ZTE MF 330 modem. I 
assume that for somebody is correct but not for me and possibly other. 
--------------------------------------------
[3.] usbserial.ko, option.ko, zte mf 330
--------------------------------------------
[4.] Linux version 2.6.33-gentoo (root@pd-mainframe) (gcc version 4.4.3 
(Gentoo 4.4.3 p1.0) ) #5 SMP Sat Apr 10 21:56:07 CEST 2010
--------------------------------------------
[5.] N/A
--------------------------------------------
[6.] N/A
--------------------------------------------
[7.] Environment
[7.1.] Linux pd-mainframe 2.6.33-gentoo #5 SMP Sat Apr 10 21:56:07 CEST 2010 
x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ AuthenticAMD GNU/Linux
 
Gnu C                  4.4.3
Gnu make               3.81
binutils               2.20.1.20100303
util-linux             2.17.2
mount                  support
module-init-tools      3.11.1
e2fsprogs              1.41.11
pcmciautils            016
PPP                    2.4.4
Linux C Library        2.11
Dynamic linker (ldd)   2.11
Procps                 3.2.8
Net-tools              1.60_p20100101055920
Kbd                    1.15.1
Sh-utils               8.4
wireless-tools         29
Modules Loaded         ipv6 iptable_filter iptable_mangle ipt_MASQUERADE 
xt_tcpudp iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 iptable_raw 
ipt_addrtype xt_DSCP xt_dscp xt_string xt_NFQUEUE xt_multiport xt_MARK xt_mark 
xt_hashlimit xt_conntrack xt_CONNMARK xt_connmark nf_conntrack ip_tables 
x_tables w83627ehf hwmon_vid snd_seq_oss snd_seq_midi_event snd_seq 
snd_seq_device snd_pcm_oss snd_mixer_oss snd_hda_codec_realtek nvidia 
tuner_simple tuner_types tuner tvaudio tda7432 bttv snd_hda_intel v4l2_common 
snd_hda_codec i2c_algo_bit videobuf_dma_sg videobuf_core snd_hwdep snd_pcm 
btcx_risc irtty_sir sir_dev tveeprom snd_timer usbserial snd yenta_socket irda 
rtc_cmos i2c_nforce2 rsrc_nonstatic thermal k8temp snd_page_alloc i2c_core 
forcedeth pcspkr processor button crc_ccitt scsi_transport_iscsi tg3 libphy 
e1000 fuse nfs lockd sunrpc raid10 raid456 async_raid6_recov async_memcpy 
async_pq async_xor xor async_tx raid6_pq raid1 raid0 dm_bbr dm_snapshot 
dm_crypt dm_mirror dm_region_hash dm_log dm_mod scsi_wait_scan sbp2 ohci1394 
ieee1394 usbhid aic94xx libsas lpfc qla2xxx megaraid_sas megaraid_mbox 
megaraid_mm megaraid aacraid sx8 DAC960 cciss 3w_9xxx 3w_xxxx mptsas 
scsi_transport_sas mptfc scsi_transport_fc scsi_tgt mptspi mptscsih mptbase 
atp870u dc395x qla1280 imm dmx3191d sym53c8xx gdth advansys initio BusLogic 
arcmsr aic7xxx aic79xx scsi_transport_spi sg pdc_adma sata_inic162x sata_mv 
ata_piix sata_qstor sata_vsc sata_uli sata_sis sata_sx4 sata_via sata_svw 
sata_sil sata_promise pata_sl82c105 pata_cs5530 pata_cs5520 pata_via 
pata_jmicron pata_marvell pata_sis pata_netcell pata_sc1200 pata_pdc202xx_old 
pata_triflex pata_atiixp pata_opti pata_amd pata_ali pata_it8213 pata_pcmcia 
pcmcia firmware_class pcmcia_core pata_ns87415 pata_ns87410 pata_serverworks 
pata_platform pata_artop pata_it821x pata_optidma pata_hpt3x2n pata_hpt3x3 
pata_hpt37x pata_hpt366 pata_cmd64x pata_efar pata_rz1000 pata_sil680 
pata_radisys pata_pdc2027x pata_mpiix
--------------------------------------------
[7.2-7.7] N/A
--------------------------------------------
[X.] Simply when i have changed option.c file in 
/usr/src/linux/drivers/usb/serial/option.c by adding 

{ USB_DEVICE(0x1D6B, 0x0002) }, /*ZTE MF 330*/

to static struct usb_device_id option_ids[]
my pc data card was correct detected by kernel. 
--------------------------------------------
-- 

Z wyrazami szacunku Pawel D

Generic mail phrase generated by fortune

"You're a creature of the night, Michael. Wait'll Mom hears about this." -- 
from the movie "The Lost Boys"

-----------------------User data-------------------------
Pawel Drobek aka Boss
Linux counter id:349664
Kadu(gg)  - 2355716
Jabber        - p.d@jabster.pl||pawel.drobek@gmail.com
-----------------------OS data---------------------------
System      - GNU/Linux
Id               - Gentoo current amd64 12/05/2009
Kernel      - 2.6.33-gentoo
Logged as - pd
---------------------End of data------------------------

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] usb-serial: add ID for ZTE MF 330
  2010-04-13 18:44 Possible issue with pcmcia data card since 2.6.27 kernel Paweł Drobek
@ 2010-04-14 19:36 ` Dominik Brodowski
  0 siblings, 0 replies; 2+ messages in thread
From: Dominik Brodowski @ 2010-04-14 19:36 UTC (permalink / raw)
  To: Paweł Drobek, Matthias Urlichs, Greg Kroah-Hartman; +Cc: linux-kernel

Based on the information provided for by Paweł Drobek, add
a second vendor ID and the correct product ID for ZTE MF 330.

Reported-by: Paweł Drobek <pawel.drobek@gmail.com>
Signed-off: Dominik Brodowski <linux@dominikbrodowski.net>

diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index ca9d866..a7f24f2 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -306,6 +306,10 @@ static int  option_resume(struct usb_serial *serial);
 #define ZTE_PRODUCT_AC8710			0xfff1
 #define ZTE_PRODUCT_AC2726			0xfff5
 
+/* ZTE PRODUCTS -- alternate vendor ID */
+#define ZTE_VENDOR_ID2				0x1d6b
+#define ZTE_PRODUCT_MF_330			0x0002
+
 #define BENQ_VENDOR_ID				0x04a5
 #define BENQ_PRODUCT_H10			0x4068
 
@@ -679,6 +683,7 @@ static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_CDMA_TECH, 0xff, 0xff, 0xff) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_AC8710, 0xff, 0xff, 0xff) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_AC2726, 0xff, 0xff, 0xff) },
+	{ USB_DEVICE(ZTE_VENDOR_ID2, ZTE_PRODUCT_MF_330) },
 	{ USB_DEVICE(BENQ_VENDOR_ID, BENQ_PRODUCT_H10) },
 	{ USB_DEVICE(DLINK_VENDOR_ID, DLINK_PRODUCT_DWM_652) },
 	{ USB_DEVICE(ALINK_VENDOR_ID, DLINK_PRODUCT_DWM_652_U5) }, /* Yes, ALINK_VENDOR_ID */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-14 19:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-13 18:44 Possible issue with pcmcia data card since 2.6.27 kernel Paweł Drobek
2010-04-14 19:36 ` [PATCH] usb-serial: add ID for ZTE MF 330 Dominik Brodowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®