request_irq问题,大家指教。

unbutun 2009-03-21 09:22:39
加载一个网卡驱动是MAC+PHY形式的,用的是50号中断,加载后提示Unbalanced enable for IRQ 263,但是驱动能用,ping能通。不知是怎么回事?大家说说。
...全文
496 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
morris88 2009-03-31
  • 打赏
  • 举报
回复
enable_irq is opposite of disable_irq(_nosync), you don't need to call it in
probe function and in most cases you don't need it at all.
morris88 2009-03-31
  • 打赏
  • 举报
回复
The enable_irq unbalanced messages are harmless. It just means that when the driver called disable_irq there were no devices already using the irq, and as such it was already disabled, so the call to disable_irq was forgotten by the kernel, so when we call enable_irq the core kernel code thinks it's unbalanced when it isn't.
erigido 2009-03-31
  • 打赏
  • 举报
回复
是不是中断复用了?
hzdysymbol 2009-03-21
  • 打赏
  • 举报
回复
我们在无线网卡的驱动中也发现这个问题,一旦出现不匹配后,Wifi好象就有问题了
理论上来说应该是Enable和Disable的次数不一样造成的
期待LZ的解决方法
  • 打赏
  • 举报
回复
应该是一种警告吧,能用就不用管那么多咯。
独孤过儿 2009-03-21
  • 打赏
  • 举报
回复
在tasklet_sched()前面加上disable_irq()試試看
unbutun 2009-03-21
  • 打赏
  • 举报
回复
我这个还有个问题就是我明明注册的是50号中断,为什么输出是263呢? 不明白

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧