From: MikeB <mabnhdev@gmail.com>
To: linux-i2c@vger.kernel.org
Subject: i2c-mux adapter names not unique
Date: Mon, 13 Mar 2017 09:14:08 -0400 [thread overview]
Message-ID: <CAAuRgKAVRUKCYdZAH3Atn4d09OmubUZN2trNRQ4aEZkEey6WNg@mail.gmail.com> (raw)
The current naming scheme for i2c-mux adapters "i2c-<parent adapter
id>-mux (chan_id <id>)" results in duplicate names if there is more
than one mux device on an i2c adapter since each device will have the
same <parent adapter id>.
For example:
+--------+
|PCA9548 |
| 0x70 |
|01234567|
+--------+
|
+-----------------------------+
| | |
+--------+ +--------+ +--------+
|PCA9548 | |PCA9548 | |PCA9548 |
| 0x73 | | 0x74 | | 0x75 |
|01234567| |01234567| |01234567|
+--------+ +--------+ +--------+
will result in eight sets of duplicate names for the channels coming
off the lower three muxes.
Any suggestions on how to modify i2c-mux.c to make these names unique?
Thanks, Mike
next reply other threads:[~2017-03-13 13:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-13 13:14 MikeB [this message]
2017-03-13 13:34 ` i2c-mux adapter names not unique Peter Rosin
2017-03-13 14:00 ` MikeB
2017-03-13 14:48 ` Peter Rosin
2017-03-13 15:05 ` MikeB
2017-03-13 21:01 ` Peter Rosin
2017-03-14 6:46 ` Danielle Costantino
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=CAAuRgKAVRUKCYdZAH3Atn4d09OmubUZN2trNRQ4aEZkEey6WNg@mail.gmail.com \
--to=mabnhdev@gmail.com \
--cc=linux-i2c@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).