Hi,
I'am trying to write driver for STIR4200 usb-irda bridge controller. I'am
not writing it from scratch but rather modify current irda-usb driver
from 2.4.20 kernel. Right now I'am testing what I've written but I've
stucked. I get kernel panic and have no idea and little experience what
to do next. Its reproducable and looks like this:
----------------------
Scheduling in interrupt
Bug at sched.c: 566!
invalid operand: 0000
CPU: 0
EIP: 0010 [<c01acda9>] Not tainted
EFLAGS: 0010286
Registers:...
Process swapper(pid:0, stacpage=c0143000)
Stack: ...
Call Trace: ...
Code: ...
<0> Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing
-----------------------
The procedure is:
modprobe stir4200 (my module)
ifconfig irda0 up
irattach irda0 -s (no ir devices in range)
wait a while (1s)
The line number in the beginning of panic message is 566 in 2.4.20-8 and
564 in 2.4.21 kernel. I suspected I do something wrong in my driver so
I've gradually cut its functionality. Now it:
-responds to probe call from usb layer
-registers the new network device and responses to calls from network
layer to net_init and net_open (without much modification from irda-ubb
driver)
-calls netif_stop_queue in what once was irda_usb_hard_xmit and returns 0
(nothing more)
-waits for network timeout and sometimes gets there but sometimes panic
is quicker
It looks strange to me because now when my driver does nothing there is
small probability it would do something wrong. Especially when it does
nothing more the irda-usb driver would do. Now I'am out of ideas what I
can do more to fix the situation. Any suggestions are welcome.
Thanks for help,
Tomek Grzejszczyk
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel