On Thu, 14 Jul 2011 03:02:40 +0600 Александр Лясин <alexander.lya...@gmail.com> wrote:
> I'm writing module for "falc" device. > During loading of the module the probe function is called. > But request_irq(48, falc_irq_handler, IRQF_DISABLED, "falc", > falc_staff) function return -38. I see, interrupt 48 (irq_chip) absent > in system. > -ENOSYS returned from __setup_irq function from manage.c: > > > if (desc->chip == &no_irq_chip) > return -ENOSYS; > > > Help me please, how can I to create it in system? request_irq() takes virtual interrupt numbers, not the numbers of some arbitrary interrupt controller in the system (sometimes there's more than one). Use irq_of_parse_and_map() on your device tree node to establish a mapping and get the virtual interrupt number. -Scott _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev