]> git.proxmox.com Git - mirror_qemu.git/commit
ppc/pnv: Fix PNV I2C invalid status after reset
authorGlenn Miles <milesg@linux.vnet.ibm.com>
Tue, 14 Nov 2023 19:56:55 +0000 (13:56 -0600)
committerCédric Le Goater <clg@kaod.org>
Tue, 21 Nov 2023 07:39:58 +0000 (08:39 +0100)
commitb664466d8f3c7b448fc7e9bd50d03a36538c6c27
treecac5e27b6293f8720925a85c710487f43a666177
parent47dfdd238dd0cc3c4834668fdd79ac5db85699f6
ppc/pnv: Fix PNV I2C invalid status after reset

The PNV I2C Controller was clearing the status register
after a reset without repopulating the "upper threshold
for I2C ports", "Command Complete" and the SCL/SDA input
level fields.

Fixed this for resets caused by a system reset as well
as from writing to the "Immediate Reset" register.

Fixes: 263b81ee15af ("ppc/pnv: Add an I2C controller model")
Signed-off-by: Glenn Miles <milesg@linux.vnet.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/pnv_i2c.c