projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3887025
)
hw/i2c: pmbus: add PEC unsupported warning
author
Titus Rwantare
<titusr@google.com>
Mon, 7 Mar 2022 20:05:59 +0000
(12:05 -0800)
committer
Philippe Mathieu-Daudé
<f4bug@amsat.org>
Tue, 8 Mar 2022 17:46:48 +0000
(18:46 +0100)
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>
hw/i2c/pmbus_device.c
patch
|
blob
|
history
diff --git
a/hw/i2c/pmbus_device.c
b/hw/i2c/pmbus_device.c
index c7ec8e54997bd566d000e217ade40ce3742f7a4a..ff644c1d4aa6b16a9fcbbe8d6adb0a6d9dcba57e 100644
(file)
--- a/
hw/i2c/pmbus_device.c
+++ b/
hw/i2c/pmbus_device.c
@@
-307,6
+307,11
@@
static uint8_t pmbus_receive_byte(SMBusDevice *smd)
case PMBUS_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;
case PMBUS_VOUT_MODE: /* R/W byte */