你好! 我尝试附加到 timer1 irq (14)。 代码示例:
int ret = request_irq(14, (irq_handler_t)timer_handler, 0, "f1c100s_timer1_irq", NULL);
if (ret < 0) {
print_message(KERN_ERR, "timer irq request failure");
return ret;
}
irq_request 返回错误 -22 (EINVAL),但 irq 未被其他驱动程序/设备附加:
# cat /proc/interrupts
CPU0
16: 18675 sun4i_irq 13 Edge timer@1c20c00
17: 0 sun4i_irq 18 Edge 1c02000.dma-controller
18: 453768 sun4i_irq 10 Edge sun6i-spi
19: 0 sun4i_irq 11 Edge sun6i-spi
20: 48727 sun4i_irq 23 Edge sunxi-mmc
21: 0 sun4i_irq 26 Edge musb-hdrc.1.auto
25: 1086 sun4i_irq 2 Edge ttyS0
Err: 0
我可能在哪里失败?
离线
有人知道吗?
离线