How to get multiple idProduct under kernel 2.4? (for GSM modem support)
"Wei-Che, Hsu" <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Organization | DynaColor |
| Message-ID | <02ae01c826ab$6ca95940$c20da8c0@S7020> |
Hi all,
'cause some historical reasons, I have to use a 3.5G GSM Modem under kernel
2.4 which already had the kernel 2.6 driver.
After some code modification, the driver can be compiled under kernel 2.4
now.
However, I encountered a problem that the kernel 2.4 can't detect the second
idProduct from the modem correctly.
The modem I used is "BandLuxe C100". idVendor is 0x1a8d.
It has at least two idProduct. One is "0x1000" & the other one is "0x1002".
The first one will be recongized as a CD-ROM which stored the shipped driver
& utility.
The other one is the real serial device to be used.
When under kernel 2.6, the first idProduct will be claimed by the
usb-storage driver.
After that, the hub_events() function will wake up again to disconnected the
device.
Then another connect change is triggered.
The second idProduct is recongized & be claimed by the usbserial driver.
However when I tried it under kernel 2.4, it can only detect the first
idProduct (0x1000).
I tried to disconnect the device by myself but still can't get the 2nd one.
Is there any tips or workaround for this?
The following is the portstatus & portchange value on function hub_events()
======= under kernel 2.6.23 =======
(status, change, ret) = (0x101, 0x1, 0) : first idProduct is detected
(status, change, ret) = (0x100, 0x3, 0) : disconnected
(status, change, ret) = (0x101, 0x1, 0) : 2nd idProduct is detected
===========================
======= under kernel 2.4.35.3 =======
(status, change, ret) = (0x101, 0x1, 0) : first idProduct is detected
===========================
Thanks in advance.
Good day.
Sincerely yours,
responder
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel