mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ben Nizette <bn@niasdigital.com>
To: Roland Stigge <stigge@antcom.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: GPIO: Handling multiple lines at once
Date: Wed, 19 Jan 2011 17:28:11 +1100	[thread overview]
Message-ID: <A507C485-12D7-4ADE-8337-B0F868D6D512@niasdigital.com> (raw)
In-Reply-To: <4D35BCA1.1050002@antcom.de>


On 19/01/2011, at 3:15 AM, Roland Stigge wrote:

> Hi,
> 
> in the standard gpio interface (see Documentation/gpio.txt), we have an
> interface to manipulate single GPIO lines.
> 
> Several drivers are implementing an interface for devices that can
> handle multiple lines at once. E.g. Maxim MAX7301
> (drivers/gpio/max7301.c). There, you can get/set/configure 8 bits at
> once which is really helpful if you are handling 8 bit data as
> bytes/characters via the lines.
> 
> Is there an appropriate interface for this case that I'm somehow missing
> from the docs and the code?

Such code isn't upstream, no.

> 
> Or do I need to create it myself?
> 
> Or is this a use case not considered "GPIO" at all?

It's a use case considered less useful than the single-pin case and much much harder to get right.  Search the archives for examples of previous attempts to add this functionality and their failings, if you feel you can correct them please give it a shot!

	--Ben.

> 
> Please CC me.
> 
> Thanks in advance!
> 
> Roland
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


      reply	other threads:[~2011-01-19  6:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-18 16:15 Roland Stigge
2011-01-19  6:28 ` Ben Nizette [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=A507C485-12D7-4ADE-8337-B0F868D6D512@niasdigital.com \
    --to=bn@niasdigital.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stigge@antcom.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

all inboxes | Powered by JetHome®