From: Peter Delevoryas Date: Thu, 30 Jun 2022 07:21:13 +0000 (+0200) Subject: hw/i2c/aspeed: Fix R_I2CD_FUN_CTRL reference X-Git-Tag: qemu-xen-4.18.0-rc5~640^2~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ceb3ff0e802bf7e373b1dbcff51541eefff25513;p=qemu-xen.git hw/i2c/aspeed: Fix R_I2CD_FUN_CTRL reference Very minor, doesn't effect functionality, but this is supposed to be R_I2CC_FUN_CTRL (new-mode, not old-mode). Fixes: ba2cccd64e9 ("aspeed: i2c: Add new mode support") Signed-off-by: Peter Delevoryas Message-Id: <20220630045133.32251-2-me@pjd.dev> Reviewed-by: Cédric Le Goater Signed-off-by: Cédric Le Goater --- diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c index 9b41bc3896..6429ab1874 100644 --- a/hw/i2c/aspeed_i2c.c +++ b/hw/i2c/aspeed_i2c.c @@ -552,7 +552,7 @@ static void aspeed_i2c_bus_new_write(AspeedI2CBus *bus, hwaddr offset, __func__); break; } - bus->regs[R_I2CD_FUN_CTRL] = value & 0x007dc3ff; + bus->regs[R_I2CC_FUN_CTRL] = value & 0x007dc3ff; break; case A_I2CC_AC_TIMING: bus->regs[R_I2CC_AC_TIMING] = value & 0x1ffff0ff;