From: Domenico Andreoli <cavokz@gmail.com>
To: David Brownell <david-b@pacbell.net>
Cc: video4linux-list@redhat.com, Michael Buesch <mb@bu3sch.de>,
Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [PATCH v3] Add bt8xxgpio driver
Date: Mon, 14 Jul 2008 19:08:44 +0200 [thread overview]
Message-ID: <20080714170844.GA622@ska.dandreoli.com> (raw)
In-Reply-To: <200807140926.28592.david-b@pacbell.net>
On Mon, Jul 14, 2008 at 09:26:28AM -0700, David Brownell wrote:
> > gpiolib does not allow holes in the number space of gpios. once you
> > set chip.ngpio, you get a contiguous slice.
>
> Right ... the hardware has N gpios, that's what a gpio_chip packages.
>
> > should the board have some of its gpio connected to something private,
> > they are not to be exported to gpiolib and to the user.
>
> If some of those are connected to something "private", the driver
> that's using them should just request those GPIOs. That will keep
> them from being requested by anything else. Don't try to create a
> second mechanism duplicating the request/free allocation scheme.
hmm.. I had completely missed the point of your previous message. so
there is no space for hybrids like mine, gpiolib is an all-or-nothing
solution.
why a tvcard driver should use generic gpio to wrap its own registers
which already knows very well? it does not make sense to me. as I
intended it, to export available gpios (= not used for its inner
workings) to a generic layer, it really gives me some advantages.
i.e. I could user sysfs to immediately test things.
I am not criticizing the gpiolib design, it's only different from what
I initially imagined and does not completely fit my needs. probably I
should give up with gpiolib and use V4L2's controls, surely losing any
IRQ ability.
all I want from the tvcard's driver is "here is the video device, the dvb
device, the xyz device and there are also some GPIOs for your pleasure".
this does not sound like "there are 8 GPIOs but you can't use 3, 4 and
5". as a user, I do no care of GPIOs I cannot use.
I do not see gpiolib fit this at all without any glue.
thanks,
Domenico
-----[ Domenico Andreoli, aka cavok
--[ http://www.dandreoli.com/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-07-14 17:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200807101914.10174.mb@bu3sch.de>
[not found] ` <20080710160258.4ddb5c61@gaivota>
2008-07-13 0:42 ` [PATCH v3] Add bt8xxgpio driver Domenico Andreoli
[not found] ` <200807131215.12082.mb@bu3sch.de>
2008-07-13 15:43 ` Domenico Andreoli
[not found] ` <200807131808.35599.mb@bu3sch.de>
2008-07-13 16:39 ` Domenico Andreoli
2008-07-15 8:46 ` Trent Piepho
[not found] ` <200807131300.35126.david-b@pacbell.net>
2008-07-14 5:25 ` Domenico Andreoli
[not found] ` <200807132259.54360.david-b@pacbell.net>
2008-07-14 7:27 ` Domenico Andreoli
[not found] ` <200807141558.29582.mb@bu3sch.de>
2008-07-14 15:25 ` Domenico Andreoli
[not found] ` <200807140926.28592.david-b@pacbell.net>
2008-07-14 17:08 ` Domenico Andreoli [this message]
[not found] ` <200807141951.39810.mb@bu3sch.de>
2008-07-14 19:21 ` Domenico Andreoli
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=20080714170844.GA622@ska.dandreoli.com \
--to=cavokz@gmail.com \
--cc=david-b@pacbell.net \
--cc=mb@bu3sch.de \
--cc=mchehab@infradead.org \
--cc=video4linux-list@redhat.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