[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 3/9] hw/i2c: pmbus: add PEC unsupported warning
From: |
Titus Rwantare |
Subject: |
[PATCH v4 3/9] hw/i2c: pmbus: add PEC unsupported warning |
Date: |
Mon, 7 Mar 2022 12:05:59 -0800 |
Signed-off-by: Titus Rwantare <titusr@google.com>
---
hw/i2c/pmbus_device.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/i2c/pmbus_device.c b/hw/i2c/pmbus_device.c
index c7ec8e5499..ff644c1d4a 100644
--- 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 */
--
2.35.1.616.g0bdcbb4464-goog
- [PATCH v4 0/9] Fixups for PMBus and new sensors, Titus Rwantare, 2022/03/07
- [PATCH v4 1/9] hw/i2c: pmbus: add registers, Titus Rwantare, 2022/03/07
- [PATCH v4 2/9] hw/i2c: pmbus: fix error returns and guard against out of range accesses, Titus Rwantare, 2022/03/07
- [PATCH v4 6/9] hw/i2c: Added linear mode translation for pmbus devices, Titus Rwantare, 2022/03/07
- [PATCH v4 8/9] hw/sensor: add Renesas raa229004 PMBus device, Titus Rwantare, 2022/03/07
- [PATCH v4 9/9] hw/sensor: add Renesas raa228000 device, Titus Rwantare, 2022/03/07
- [PATCH v4 4/9] hw/i2c: pmbus: refactor uint handling, Titus Rwantare, 2022/03/07
- [PATCH v4 7/9] hw/sensor: add Intersil ISL69260 device model, Titus Rwantare, 2022/03/07
- [PATCH v4 5/9] hw/i2c: pmbus: update MAINTAINERS, Titus Rwantare, 2022/03/07
- [PATCH v4 3/9] hw/i2c: pmbus: add PEC unsupported warning,
Titus Rwantare <=