当前位置: 技术问答>linux和unix
调用驱动后出现的警告信息求解
来源: 互联网 发布时间:2016-11-11
本文导语: 我在ARM9开发板上做CAN通信测试,驱动是自己改的,测试时虽然接收数据正确了,但中间伴有警告信息,不知何故? can test start ...
我在ARM9开发板上做CAN通信测试,驱动是自己改的,测试时虽然接收数据正确了,但中间伴有警告信息,不知何故?
can test start
init mcp2510 over
state ok
Open device success.
send datagram.
the data sended is abcd1234.
data_receive.BufNo = 3
data_receive.IdType = 0
data_receive.id = 23
dTrying to free nonexistent resource
Trying to free nonexistent resource
Trying to free nonexistent resource
------------[ cut here ]------------
WARNING: at kernel/irq/manage.c:735 __free_irq+0x114/0x1c0()
Trying to free already-free IRQ 20
Modules linked in: candrv ov9650 zd1211rw rt73usb rt2x00usb rt2x00lib mac80211 v
Backtrace:
...
---[ end trace eaef40f5fe83d0b7 ]---
ata_receive.DataLen = 8
data_receive.data = abcd1234
can test start
init mcp2510 over
state ok
Open device success.
send datagram.
the data sended is abcd1234.
data_receive.BufNo = 3
data_receive.IdType = 0
data_receive.id = 23
dTrying to free nonexistent resource
Trying to free nonexistent resource
Trying to free nonexistent resource
------------[ cut here ]------------
WARNING: at kernel/irq/manage.c:735 __free_irq+0x114/0x1c0()
Trying to free already-free IRQ 20
Modules linked in: candrv ov9650 zd1211rw rt73usb rt2x00usb rt2x00lib mac80211 v
Backtrace:
...
---[ end trace eaef40f5fe83d0b7 ]---
ata_receive.DataLen = 8
data_receive.data = abcd1234
|
有两点建议:
1. dev->IrqNum和eint_irq是相等
2. 没必要每次打开的时候都重新申请资源, 关闭时候释放资源,
只需要在 init 时候 申请, exit 时候释放即可。
反复申请和释放中断,可能会出现问题。
1. dev->IrqNum和eint_irq是相等
2. 没必要每次打开的时候都重新申请资源, 关闭时候释放资源,
只需要在 init 时候 申请, exit 时候释放即可。
反复申请和释放中断,可能会出现问题。
|
你确定dev->IrqNum和eint_irq是相等的吗?打印出来看看。