Mitch wrote:
Thanks David.

All working now.

Can we get the Kconfig text fixed too since it's definetly confusing.

Try submitting a patch with text that's less confusing to you. Any more technical details probably belong in Documentation/usb.

We expect that 2.6.1 will make such confusion less of an issue,
but a fix to get rid of the confusion would help.

- Dave



much appreciated.
Mitch

-------- Original Message --------
Subject: Re: [linux-usb-devel] acm modem not working in 2.6-test11 but works in 2.4
Date: Sun, 30 Nov 2003 09:12:12 -0800
From: David Brownell <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]>


[EMAIL PROTECTED] wrote:

     If your modem only reports "Cls=ff(vend.)" in the descriptors in
     /proc/bus/usb/devices, then your modem will not work with this
     driver.

which mine does (see below), i can't understand why this works
in 2.4 and not 2.6 kernels ?


Because that Kconfig help text is wrong.  The issue is that if
the modem ONLY reports vendor-specific (likely MSFT-proprietary)
configurations, you're in trouble.  But since your modem has two
configurations ("#Cfgs= 2)", and the second one is normal, you
just need to make Linux use that configuration.

The simple way: "echo 2 > /sys/bus/usb/devices/1-2/bConfigurationValue"
and then the cdc-acm code will automatically hook up with that device.
The "1-2" is the path from the root to your device, and won't change
so long as you don't plug it into a different hub port.  The "2" is
from the config descriptor below:  "C: ... Cfg# = 2..." has the
standard  "I: ... Cls=02(comm.) Sub=02 Prot=01..." interface.

And 2.6.1 should remove the need for this manual tweak, using a
version of this patch

http://marc.theaimsgroup.com/?l=linux-usb-devel&m=106642332707309&w=2

The only change being to give the right error message if the set_config
fails; that version reports the wrong config value in some cases.

- Dave

p.s. MxPwr=400mA ... which is a lot, that likely needs a powered hub.
     Like the root hu you're using in this case.


Oh bootup i get:

drivers/usb/core/usb.c: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters


My /proc/bus/usb/devices:

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  2
P:  Vendor=05cc ProdID=2265 Rev= 1.00
S:  Manufacturer=Lucent Technologies, Inc.
S:  Product=ELSA Modem Board
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=400mA
I:  If#= 0 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=02(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=84(I) Atr=03(Int.) MxPS=  63 Ivl=2ms
C:  #Ifs= 2 Cfg#= 2 Atr=a0 MxPwr=400mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=(none)
E:  Ad=84(I) Atr=03(Int.) MxPS=  32 Ivl=128ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=02 Prot=01 Driver=(none)
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=86(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms







-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to