From: holger.brunck@keymile.com (Holger Brunck)
To: linux-arm-kernel@lists.infradead.org
Subject: label string for kirkwood gpiochip
Date: Thu, 15 Dec 2011 14:54:21 +0100 [thread overview]
Message-ID: <4EE9FC0D.10009@keymile.com> (raw)
Hi,
we recently switched with our kirkwood based board to a newer kernel version.
Our application code is written in that way if someone request an gpio in
userspace that he do search the gpiochip via the gpio label.
The newer kernel version handles the gpiochip on kirkwood in a different way.
The orion_gpio_init function in arch/arm/mach-kirkwood/irq.c was called twice.
Once for first 32 gpios and a second time for the remaining 18 gpios. This
causes that the gpio framework shows two gpiochips in the sysfs with the same
label (orion_gpio).
[@km_kirkwood /]# cat /sys/class/gpio/gpiochip0/label
orion_gpio
[@km_kirkwood /]# cat /sys/class/gpio/gpiochip32/label
orion_gpio
So my question is simply, shouldn't be the string for a gpiochip unique in the
system and therefore this should be fixed or was this intended?
Best regards
Holger Brunck
next reply other threads:[~2011-12-15 13:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-15 13:54 Holger Brunck [this message]
2011-12-15 14:22 ` label string for kirkwood gpiochip Nicolas Pitre
2011-12-15 14:40 ` Holger Brunck
2011-12-17 16:44 ` Nicolas Pitre
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=4EE9FC0D.10009@keymile.com \
--to=holger.brunck@keymile.com \
--cc=linux-arm-kernel@lists.infradead.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).