From: Richard Cochran <richardcochran@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Alan Tull <atull@altera.com>,
Alexandre Courbot <gnurou@gmail.com>,
Dinh Nguyen <dinguyen@altera.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Johan Hovold <johan@kernel.org>
Subject: Re: [PATCH 1/2] gpio: dwapb: Use human understandable gpio numbering.
Date: Mon, 27 Jul 2015 13:28:35 +0200 [thread overview]
Message-ID: <20150727112835.GA5617@localhost.localdomain> (raw)
In-Reply-To: <CACRpkdYUcXjJz+jZ5ZMXK1a7GLi8eL+ecr-yL6Y8901f_-pknQ@mail.gmail.com>
On Mon, Jul 27, 2015 at 12:19:08PM +0200, Linus Walleij wrote:
> On Thu, Jul 16, 2015 at 7:19 PM, Richard Cochran
> > This happens with every DT discussion that tries to make things
> > logical for the end user.
>
> Are you assuming bad faith?
No, I was reacting to the NAK (which I can accept) that does not
address or even acknowledge the problem (which I cannot accept so
easily).
But now that a solution has appeared, I am happy again.
> I think Michael made a very very nice patch series trying to make
> things logical for end users, please participate in that discussion.
Yes, I read it, and it sounds like it will solve the problem. I will
give the series a try...
> > Isn't there a mapping interface for irq numbers?
>
> I don't see what you mean here. The numbers that appear in
> say /proc/interrupts may seem stable but they are not.
> They depend on things like probe order between irqchips
> and can change between two boots.
>
> The reason users don't have an issue with it is that there is
> (thank god) no userspace ABI for interrupts.
I was talking about CONFIG_IRQ_DOMAIN_DEBUG.
> The problem is for example if I have a SoC with a GPIO expander:
> both have a GPIO line named "0". Which one wins? The SoC
> because it is "more important"? This issue is all over the place
> in any modern chipset. In Ux500 I have sometimes three GPIO
> expanders, all three with GPIO line 0, and also a GPIO 0 on
> the SoC of course. So we need to express this complexity to
> userspace, not try to simplify the world.
Thanks for the explanation. Of course I don't want an arbitrarily
simplified interface, but I can't understand why the simple case of
built-in SoC GPIOs must have such a weird and variable numbering
patterns.
But once user space can call GPIOs by name, then it doesn't matter
anymore what the kernel numbers are.
Thanks,
Richard
next prev parent reply other threads:[~2015-07-27 11:28 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-01 19:34 [PATCH 0/2] gpio: dwapb: allow sane gpio numbering Richard Cochran
2015-07-01 19:34 ` [PATCH 1/2] gpio: dwapb: Use human understandable " Richard Cochran
2015-07-02 7:05 ` Michael van der Westhuizen
2015-07-02 14:20 ` Richard Cochran
[not found] ` <20150702142058.GA9349-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2015-07-16 7:57 ` Linus Walleij
2015-07-16 8:18 ` Michael van der Westhuizen
2015-07-16 18:19 ` Richard Cochran
2015-07-03 9:13 ` Richard Cochran
2015-07-03 9:18 ` Michael van der Westhuizen
[not found] ` <C1BD6DA3-F32E-4CAD-8DA9-6F74A7966DBE-XrNoQAPr3WXM9gW82pYGhQ@public.gmane.org>
2015-07-03 10:36 ` Richard Cochran
2015-07-03 10:55 ` Russell King - ARM Linux
2015-07-16 7:52 ` Linus Walleij
2015-07-16 8:16 ` Michael van der Westhuizen
2015-07-02 7:36 ` Sebastian Andrzej Siewior
2015-07-02 14:26 ` Richard Cochran
2015-07-02 14:30 ` Sebastian Andrzej Siewior
[not found] ` <55954B17.3020303-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2015-07-02 15:21 ` Richard Cochran
[not found] ` <20150702152147.GA10111-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2015-07-02 15:54 ` Sebastian Andrzej Siewior
2015-07-02 16:02 ` Michael van der Westhuizen
2015-07-03 13:30 ` Michael van der Westhuizen
[not found] ` <d6b5ce85a17164970d454583560e07f7aed7b8ca.1435777856.git.rcochran-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2015-07-16 7:50 ` Linus Walleij
2015-07-16 17:10 ` Richard Cochran
2015-07-16 17:19 ` Richard Cochran
2015-07-27 10:19 ` Linus Walleij
2015-07-27 11:28 ` Richard Cochran [this message]
2015-07-27 12:26 ` Sebastian Andrzej Siewior
[not found] ` <cover.1435777856.git.rcochran-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2015-07-01 19:34 ` [PATCH 2/2] arm: dts: socfpga: Provide the gpio numbers in the controller nodes Richard Cochran
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=20150727112835.GA5617@localhost.localdomain \
--to=richardcochran@gmail.com \
--cc=atull@altera.com \
--cc=bigeasy@linutronix.de \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@altera.com \
--cc=gnurou@gmail.com \
--cc=johan@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@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;
as well as URLs for NNTP newsgroup(s).