linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: "Александр Лясин" <alexander.lyasin@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: Can't request irq
Date: Wed, 13 Jul 2011 16:50:36 -0500	[thread overview]
Message-ID: <20110713165036.209d24cd@schlenkerla.am.freescale.net> (raw)
In-Reply-To: <CA+tvTZsMwAYswu=1+0FHLxMAF2354mFnvbxmRVjw3Z=Mp+gFYw@mail.gmail.com>

On Thu, 14 Jul 2011 03:02:40 +0600
=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 =D0=9B=D1=8F=D1=81=
=D0=B8=D0=BD <alexander.lyasin@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:
>=20
>=20
> if (desc->chip =3D=3D &no_irq_chip)
>        return -ENOSYS;
>=20
>=20
> 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

      reply	other threads:[~2011-07-13 21:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-13 21:02 Can't request irq Александр Лясин
2011-07-13 21:50 ` Scott Wood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110713165036.209d24cd@schlenkerla.am.freescale.net \
    --to=scottwood@freescale.com \
    --cc=alexander.lyasin@gmail.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).