]> git.proxmox.com Git - mirror_qemu.git/commit
ppc/pnv: PNV I2C engines assigned incorrect XSCOM addresses
authorGlenn Miles <milesg@linux.vnet.ibm.com>
Tue, 14 Nov 2023 19:56:54 +0000 (13:56 -0600)
committerCédric Le Goater <clg@kaod.org>
Tue, 21 Nov 2023 07:39:58 +0000 (08:39 +0100)
commit47dfdd238dd0cc3c4834668fdd79ac5db85699f6
treed3c1b97af5505798c0ae60e01396b22b756fbb4d
parentd18b0652869a39688d0fd2897bc035b309d1b6e8
ppc/pnv: PNV I2C engines assigned incorrect XSCOM addresses

The PNV I2C engines for power9 and power10 were being assigned a base
XSCOM address that was off by one I2C engine's address range such
that engine 0 had engine 1's address and so on.  The xscom address
assignment was being based on the device tree engine numbering, which
starts at 1.  Rather than changing the device tree numbering to start
with 0, the addressing was changed to be based on the existing device
tree numbers minus one.

Fixes: 1ceda19c28a1 ("ppc/pnv: Connect PNV I2C controller to powernv10)
Signed-off-by: Glenn Miles <milesg@linux.vnet.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/pnv.c
hw/ppc/pnv_i2c.c