]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/ssi/pnv_spi: Make bus names distinct for each controllers of a socket
authorChalapathi V <chalapathi.v@linux.ibm.com>
Mon, 3 Mar 2025 14:13:27 +0000 (08:13 -0600)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:31 +0000 (22:43 +1000)
commit7192d7b7fea15f2226a896f02b360bf7cfce1ab1
treee6537266565f5f0e916322185718418228adc611
parentf1f756f305981c24a37a0be3113c2326a28594a5
hw/ssi/pnv_spi: Make bus names distinct for each controllers of a socket

Create a spi buses with distinct names on each socket so that responders
are attached to correct SPI controllers.

Change the bus name to chipX.spi.<busnum> where X = 0..<num_sockets>

QOM tree on a 2 socket machine:
(qemu) info qom-tree
/machine (powernv10-machine)
  /chip[0] (power10_v2.0-pnv-chip)
    /pib_spic[0] (pnv-spi)
      /chip0.spi.0 (SSI)
      /xscom-spi[0] (memory-region)
  /chip[1] (power10_v2.0-pnv-chip)
    /pib_spic[0] (pnv-spi)
      /chip1.spi.0 (SSI)
      /xscom-spi[0] (memory-region)

Signed-off-by: Chalapathi V <chalapathi.v@linux.ibm.com>
Message-ID: <20250303141328.23991-4-chalapathi.v@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/pnv.c
hw/ssi/pnv_spi.c
include/hw/ssi/pnv_spi.h
tests/qtest/pnv-spi-seeprom-test.c