linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* i2c-mux adapter names not unique
@ 2017-03-13 13:14 MikeB
  2017-03-13 13:34 ` Peter Rosin
  0 siblings, 1 reply; 7+ messages in thread
From: MikeB @ 2017-03-13 13:14 UTC (permalink / raw)
  To: linux-i2c

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-14  6:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-13 13:14 i2c-mux adapter names not unique MikeB
2017-03-13 13:34 ` 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

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).