mirror of https://github.com/xemu-project/xemu.git
hw/i2c: pmbus: add PEC unsupported warning
Signed-off-by: Titus Rwantare <titusr@google.com> Acked-by: Corey Minyard <cminyard@mvista.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220307200605.4001451-4-titusr@google.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
38870253f1
commit
2192aaae1c
|
@ -307,6 +307,11 @@ static uint8_t pmbus_receive_byte(SMBusDevice *smd)
|
||||||
|
|
||||||
case PMBUS_CAPABILITY:
|
case PMBUS_CAPABILITY:
|
||||||
pmbus_send8(pmdev, pmdev->capability);
|
pmbus_send8(pmdev, pmdev->capability);
|
||||||
|
if (pmdev->capability & BIT(7)) {
|
||||||
|
qemu_log_mask(LOG_UNIMP,
|
||||||
|
"%s: PEC is enabled but not yet supported.\n",
|
||||||
|
__func__);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PMBUS_VOUT_MODE: /* R/W byte */
|
case PMBUS_VOUT_MODE: /* R/W byte */
|
||||||
|
|
Loading…
Reference in New Issue