linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Duy-Ky Nguyen" <duykynguyen@hotmail.com>
To: "Scott Wood" <scottwood@freescale.com>
Cc: Liu Dave <DaveLiu@freescale.com>, linuxppc-embedded@ozlabs.org
Subject: Re: Failure of request_irq()  for MPC8313 using arch=powerpc
Date: Tue, 22 Jul 2008 18:54:50 -0700	[thread overview]
Message-ID: <BLU119-DAV9BAEF385061105909DC9FBB840@phx.gbl> (raw)
In-Reply-To: 20080722175508.GA13940@loki.buserror.net

Hello Scott,

I forgot to mention that I have less error if I use the existing device node 
"spi" in the DTS file

# Start of error capture

Got device node from device tree
Got Virtual IRQ
PPC : interrupt hook failed (-22)

# End of capture

So it's able to access the device node and to map "virq" while I had total 
failure in using "gpio" I put into DTS

I must make mistake in creating the node "gpio" in the DTS file

I'm using FreeScale Eva board MPC8313ERDB

Thanks,

Duy-Ky

----- Original Message ----- 
From: "Scott Wood" <scottwood@freescale.com>
To: "Duy-Ky Nguyen" <duykynguyen@hotmail.com>
Cc: "Liu Dave" <DaveLiu@freescale.com>; <linuxppc-embedded@ozlabs.org>
Sent: Tuesday, July 22, 2008 10:55 AM
Subject: Re: Failure of request_irq() for MPC8313 using arch=powerpc


> On Tue, Jul 15, 2008 at 08:43:59PM -0700, Duy-Ky Nguyen wrote:
>> Hi Dave,
>>
>> I've just tried it and it failed.
>
> Could you elaborate on exactly what you tried?  Did you pass the GPIO 
> device
> tree node?
>
>> Before I had tried using the function
>> int virq = of_irq_to_resource(GPIO_IRQ, 0, NULL);
>> and it failed the same way
>
> The first argument of of_irq_to_resource is a device node pointer, not an
> IRQ number.  Surely the compiler warned you about this.
>
> -Scott
> 

      reply	other threads:[~2008-07-23  1:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16  0:58 Failure of request_irq() for MPC8313 using arch=powerpc Duy-Ky Nguyen
2008-07-16  2:09 ` Liu Dave
2008-07-16  3:43   ` Duy-Ky Nguyen
2008-07-22 17:55     ` Scott Wood
2008-07-23  1:54       ` Duy-Ky Nguyen [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=BLU119-DAV9BAEF385061105909DC9FBB840@phx.gbl \
    --to=duykynguyen@hotmail.com \
    --cc=DaveLiu@freescale.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=scottwood@freescale.com \
    /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).