您尚未登录。

楼主 # 2023-01-19 04:52:46

in_text
会员
注册时间: 2023-01-07
已发帖子: 6
积分: 6

F1C200S timer irq_request error -22

你好! 我尝试附加到 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

我可能在哪里失败?

离线

楼主 #1 2023-02-06 11:16:39

in_text
会员
注册时间: 2023-01-07
已发帖子: 6
积分: 6

Re: F1C200S timer irq_request error -22

有人知道吗?

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn


东莞哇酷科技有限公司开发