public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jerome Oufella <jerome.oufella@savoirfairelinux.com>
To: Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	Matthew Garrett <mjg@redhat.com>
Cc: linux-kernel@vger.kernel.org,
	platform-driver-x86@vger.kernel.org,
	Michael Buesch <mb@bu3sch.de>
Subject: Re: gpiolib: irq functions not implemented on x86
Date: Fri, 26 Mar 2010 13:51:46 -0400 (EDT)	[thread overview]
Message-ID: <80528391.1791269625906877.JavaMail.root@mail.savoirfairelinux.com> (raw)
In-Reply-To: <201003252311.22522.mb@bu3sch.de>

----- "Michael Buesch" <mb@bu3sch.de> wrote :

> Are you sure that I am the intended recipient of this mail?
> I'm not involved in the GPIO subsystem at all.

Sorry Michael, I wrote to you as the original author for the questioned code.
So being unable to find anyone in charge of the GPIO subsystem,
I'm reiterating with the x86 team.

Regards,
Jerome

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 return 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-26 17:51 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
2010-03-26 17:51     ` Jerome Oufella [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=80528391.1791269625906877.JavaMail.root@mail.savoirfairelinux.com \
    --to=jerome.oufella@savoirfairelinux.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mb@bu3sch.de \
    --cc=mingo@redhat.com \
    --cc=mjg@redhat.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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