public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: "Jérôme Oufella" <jerome.oufella@savoirfairelinux.com>
Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org
Subject: Re: gpiolib: irq functions not implemented on x86
Date: Thu, 25 Mar 2010 23:11:22 +0100	[thread overview]
Message-ID: <201003252311.22522.mb@bu3sch.de> (raw)
In-Reply-To: <566941124.2751269545764521.JavaMail.root@mail.savoirfairelinux.com>

Are you sure that I am the intended recipient of this mail?

I'm not involved in the GPIO subsystem at all.


On Thursday 25 March 2010 20:36:04 Jérôme Oufella wrote:
> Hi,
> 
> I wrote a gpiolib implementation for Technologic Systems TS-5500 boards (x86)
> custom GPIO lines. Some of their GPIO lines are directly hooked to CPU (ElanSC520)
> GPIRQ lines, so they can trigger IRQs.
> 
> However, looking at arch/x86/include/asm/gpio.h:
> /*
>  * Not implemented, yet.
>  */
> static inline int gpio_to_irq(unsigned int gpio)
> {
>         return -ENOSYS;
> }
> 
> gpio_to_irq()/irq_to_gpio() are not defined on x86 yet.
> 
> Q: Is there a reason not to have it call gpiolib's __gpio_to_irq(), as done 
> for other gpiolib functions defined here ? such as
> 
> -       return -ENOSYS;
> +       return __gpio_to_irq(gpio);
> 
> 
> Thanks
> Jerome Oufella
> 
> 

-- 
Greetings, Michael.

  reply	other threads:[~2010-03-25 22:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1226966206.2731269545548579.JavaMail.root@mail.savoirfairelinux.com>
2010-03-25 19:36 ` gpiolib: irq functions not implemented on x86 Jérôme Oufella
2010-03-25 22:11   ` Michael Buesch [this message]
2010-03-26 17:51     ` Jerome Oufella

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=201003252311.22522.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=jerome.oufella@savoirfairelinux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.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