All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jérôme Oufella" <jerome.oufella@savoirfairelinux.com>
To: Michael Buesch <mb@bu3sch.de>
Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org
Subject: gpiolib: irq functions not implemented on x86
Date: Thu, 25 Mar 2010 15:36:04 -0400 (EDT)	[thread overview]
Message-ID: <566941124.2751269545764521.JavaMail.root@mail.savoirfairelinux.com> (raw)
In-Reply-To: <1226966206.2731269545548579.JavaMail.root@mail.savoirfairelinux.com>

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

       reply	other threads:[~2010-03-25 19:42 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 ` Jérôme Oufella [this message]
2010-03-25 22:11   ` gpiolib: irq functions not implemented on x86 Michael Buesch
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=566941124.2751269545764521.JavaMail.root@mail.savoirfairelinux.com \
    --to=jerome.oufella@savoirfairelinux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mb@bu3sch.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.