[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/9] hw/i2c: pmbus: add PEC unsupported warning
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 3/9] hw/i2c: pmbus: add PEC unsupported warning |
Date: |
Tue, 8 Mar 2022 19:13:14 +0100 |
From: Titus Rwantare <titusr@google.com>
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 | 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.34.1
- [PULL 0/9] I²C / SMBus / PMBus patches for 2022-03-08, Philippe Mathieu-Daudé, 2022/03/08
- [PULL 1/9] hw/i2c: pmbus: add registers, Philippe Mathieu-Daudé, 2022/03/08
- [PULL 2/9] hw/i2c: pmbus: fix error returns and guard against out of range accesses, Philippe Mathieu-Daudé, 2022/03/08
- [PULL 3/9] hw/i2c: pmbus: add PEC unsupported warning,
Philippe Mathieu-Daudé <=
- [PULL 4/9] hw/i2c: pmbus: refactor uint handling, Philippe Mathieu-Daudé, 2022/03/08
- [PULL 5/9] hw/i2c: pmbus: update MAINTAINERS, Philippe Mathieu-Daudé, 2022/03/08
- [PULL 6/9] hw/i2c: Added linear mode translation for pmbus devices, Philippe Mathieu-Daudé, 2022/03/08
- [PULL 7/9] hw/sensor: add Intersil ISL69260 device model, Philippe Mathieu-Daudé, 2022/03/08
- [PULL 8/9] hw/sensor: add Renesas raa229004 PMBus device, Philippe Mathieu-Daudé, 2022/03/08
- [PULL 9/9] hw/sensor: add Renesas raa228000 device, Philippe Mathieu-Daudé, 2022/03/08
- Re: [PULL 0/9] I²C / SMBus / PMBus patches for 2022-03-08, Peter Maydell, 2022/03/10