From: Cmmn Ml <cm...@ya...> - 2007-10-03 14:32:49
|
Hello, This may not be something interesting to the general community, because SH7705 is not now widley used. But if someone can give some thoughts, it will be a great help for me. I'm working on SH 7705 Solution Engine board, my kernel is linux 2.6.16 (after applying the SH linux stable patch relavant to this kernel version sh--stable--2.6.16). Currently I'm developing a driver which hanldes interrupt coming from IRQ0 processor pin. When I try to register the interrupt handler, I get an error message saying "irq event 32: bogus return value 7". The way I try to register the interrupt is if(request_irq(32, interrupt_handler, SA_INTERRUPT, "IRQ0_INT", NULL) == 0) { printk("interrupt_handler registered\r\n"); } When this code is executed, request_irq returns with 0 indicating success, but then it gives up the message ""irq event 32: bogus return value 7". When the interrupt comes, the execution goes into the interrupt handler as well. The value 32 is the irq number I'm requesting (which is relevent to IRQ0) and I don't know what is 7. FYI : I'm setting the priority of IRQ0 as 7 in IPRC register. Were there any known problems in 2.6.16 kernel with IRQ0 in 7705, If anyone can give some thoughts on this, it'll be a great. Thanks in advance. Cmmn Ml --------------------------------- Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. |