Bug is back !

just done a /etc/init.d/hotplug restart, and then the bug came back !

so, i've tried to apply the patch, but it doesn't compile : linux:~/eagle-usb-2.0.0# make
make -C driver && \
make -C pppoa && \
make -C utils/scripts && \
make -C utils/eagleconnect && \
make -C doc
make[1]: Entering directory `/root/eagle-usb-2.0.0/driver'
if test ! -f .depend ; then make dep ; exit 0 ; fi
make[2]: Entering directory `/root/eagle-usb-2.0.0/driver'
cc -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.28/build/include '-DEAGLEUSBVERSION="2.0.0"' -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -DUSE_CMVS -O2 -M *.c > .depend
make[2]: Leaving directory `/root/eagle-usb-2.0.0/driver'
cc -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.28/build/include '-DEAGLEUSBVERSION="2.0.0"' -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -DUSE_CMVS -O2 -c -o eu_main.o eu_main.c
eu_main.c: In function `eu_probe':
eu_main.c:365: parse error before `int'
eu_main.c:370: `driver_info' undeclared (first use in this function)
eu_main.c:370: (Each undeclared identifier is reported only once
eu_main.c:370: for each function it appears in.)
eu_main.c:399: warning: label `byebye' defined but not used
eu_main.c: At top level:
eu_main.c:472: parse error before `int'
eu_main.c: In function `eu_init_postfirm':
eu_main.c:474: number of arguments doesn't match prototype
eu_main.c:137: prototype declaration
eu_main.c:501: `usb' undeclared (first use in this function)
eu_main.c:502: `driver_info' undeclared (first use in this function)
make[1]: *** [eu_main.o] Error 1
make[1]: Leaving directory `/root/eagle-usb-2.0.0/driver'
make: *** [build] Error 2

and, i've got another question to ask you : when i get disconnected, it seems hard to get reconnected, and i've noticed that when i connect for the first time, there's those lines in the logs, from pppoe :
Dec 20 12:05:24 linux pppoe[25016]: PADS: Service-Name: ''
Dec 20 12:05:24 linux pppoe[25016]: PPP session is 5937
but, if i get disconnected, they don't appear, and i get :
Dec 20 11:49:16 linux pppd[18255]: LCP: timeout sending Config-Requests

is there a way to solve it ?

Alexandre LISSY wrote:
just don't remember if i've applied it :)

but, it seems like i haven't seen no more "Eagle0" :)

matthieu castet wrote:

matthieu castet wrote:

Frederick Ros wrote:

Quoting matthieu castet <[EMAIL PROTECTED]>:


Frederick Ros wrote:
Well there are no user for the module so why hotplug or another things
could not unload the modules ?





Yes .. but it leads to inconsistency between non-hotplugged machine and hotplug enabled ones ... For the former we know that the module is not unloaded and
therefore we could have some static (common to all instance of a modem)
information whereas on hotplug-enabled we can't take it for granted ...


What happen if I reboot and the modem have already the firmware...




Yep .. This is a point : in this case the moem is seen as a post-firmware (i.e that is what happened in my box even when it was off, as USB ports were still pwered on ..) .. We have no clue in this case to get the firmware level ...
except for explicitely checking the product id ...

I found some time to finalized my patch with driver info.
It is quite ugly, because i don't to touch much code but :
- eu_instance_t should be allocated in probe and we pass 'ins' to eu_init_* - the use of CASE_PREFIRM, CASE_POSTFIRM and all macro comaring id should be replaced.


So what about this patch ?

_______________________________________________
Eagleusb-dev mailing list
[email protected]
https://mail.gna.org/listinfo/eagleusb-dev




_______________________________________________
Eagleusb-dev mailing list
[email protected]
https://mail.gna.org/listinfo/eagleusb-dev




Reply via email to