Re: i2c-mux adapter names not unique

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 13, 2017 at 9:34 AM, Peter Rosin <peda@xxxxxxxxxx> wrote:
>> Any suggestions on how to modify i2c-mux.c to make these names unique?
>
> Why do they have to be unique?
>
I am porting OpenSwitch (www.openswitch.net) to a new platform that
has a topology as above.  OpenSwitch uses i2c adapter names to bind
i2c adapter devices to internal i2c adapters.  It assumes that
adapters are given unique names.

The presumption based on current i2c-mux behavior was that i2c adapter
names would be unique.  I knew this would cause problems for
OpenSwitch sooner or later.  It's sooner for me.

I've patched my local kernel to add the mux address to the name -
"i2c-<parent adapter id>-mux-<mux addr> (chan_id <id>)" which does
result in unique names.  However, my patch only works on topologies
that use only pca954x muxes.  I'd prefer a patch that could work for
all topologies.

Regards, Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux