Re: i2c: slave support framework improvements

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

 




28.07.2016, 10:42, "Wolfram Sang" <wsa@xxxxxxxxxxxxx>:
> I didn't read all, just found my name in this paragraph.
>
>>  > I'm also a bit surprised that you are allowed to create a new (dummy) device
>>  > with an address that is already taken on a downstream mux client adapter.
>>  > Is that a feature in the i2c core, or is it a bug? Wolfram?
>>
>>  This is what I mean under the "populate all the slave devices beforehand".
>>  From the i2c bus point of view, I just adding one device per bus. It's allowed.
>>  From the adapter point of view, I duplicates clients with the same addr.
>
> The slave device must be attached to the muxed adapter. There, the
> address should be free. The parent adapter should be reconfigured
> depending on the mux setting.
>
> At least, that's the theory, dunno if this really works. I thought you
> would be doing this already?

Correct. Here is the instantiation of the proxy client on the root bus:

https://github.com/ya-mouse/openbmc-target/blob/master/aspeed/patches-4.4/0065-i2c-slave-mux-pca954x.patch#L46

and here is reconfiguration:

https://github.com/ya-mouse/openbmc-target/blob/master/aspeed/patches-4.4/0065-i2c-slave-mux-pca954x.patch#L57
https://github.com/ya-mouse/openbmc-target/blob/master/aspeed/patches-4.4/0065-i2c-slave-mux-pca954x.patch#L60
--
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