Skip to contentSkip to conversation

ssi_auto_connect_slave

Qemu-devel boddu pavan 1 participant 1 message May 24, 2017 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

+qemu-dev

Show original message On Monday, May 22, 2017 6:34 PM, boddu pavan <[email protected]> wrote:

Hi,
I see that ssi_auto_connect_slave helper of ssi.c (https://github.com/qemu/qemu/blob/master/hw/ssi/ssi.c#L166) is used to connect SSISlave children of spi controller to its respective spi bus. But this function cannot handle the scenario where controller has two spi busses ( like xilinx_spips). In this case each SSISlave is registered on both the buses. I cannot image a possible good way to fix this, other than assigning a bus number property for each SSISlave. Let me know if that works as a good patch if provided ?
Thanks,
Sai Pavan