> I have spend a lot of time but I succeed, I was able to found a solution
> for Linux 2.6.X kernel. The problem isn't in the speedtouch drivers but
> in the kernel.
Well done! However one could say that the problem is in modem_run.
The problem is that modem_run sets altsetting 1 on interface 1 then
exits. pppoax expects to see that altsetting. But when modem_run
exits it releases interface 1 which returns interface 1 to altsetting 0
(thanks to a change by Alan Stern (IIRC)). Then pppoax is run.
It needs altsetting 1 to work. I think the right solution is for pppoax
to set altsetting 1 on interface 1 itself. Just remove the test
if (alternate_ep != -1) {
in pppoa3.c, line 680 (untested).
Alan, what do you think? Is choosing altsetting 0 in usb_driver_release_interface
appropriate given that there are user space drivers around?
Ciao,
Duncan.
> To use the modem, you just need to modify one file :
> drivers/usb/core/usb.c
>
> In function "usb_driver_release_interface" (at line 327 in
> 2.6.1-rc1-mm1), you just need to comment :
>
> usb_set_interface(interface_to_usbdev(iface),
> ������������������������iface->altsetting[0].desc.bInterfaceNumber,
> ������������������������0);
>
>
> The full function :
>
> void usb_driver_release_interface(struct usb_driver *driver, struct
> usb_interface *iface)
> {
> ��������/* this should never happen, don't release something that's not ours */
> ��������if (!iface || !iface->driver || iface->driver != driver)
> ����������������return;
>
> ��������if (iface->dev.driver) {
> ����������������/* FIXME should be the ONLY case here */
> ����������������device_release_driver(&iface->dev);
> ����������������return;
> ��������}
>
> /*������usb_set_interface(interface_to_usbdev(iface),
> ������������������������iface->altsetting[0].desc.bInterfaceNumber,
> ������������������������0);*/
> ��������usb_set_intfdata(iface, NULL);
> ��������iface->driver = NULL;
> }
>
> Note:
> I think it will work on every kernel (tested on 2.6.0-test3 and on the
> lastest)
>
>
> Laurent
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel