|
From: | Cédric Le Goater |
Subject: | Re: [PATCH 09/14] pmbus: Reset out buf after switching pages |
Date: | Tue, 28 Jun 2022 08:51:17 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 |
On 6/27/22 21:55, Peter Delevoryas wrote:
Signed-off-by: Peter Delevoryas <pdel@fb.com>
is that a bug ?
--- hw/i2c/pmbus_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i2c/pmbus_device.c b/hw/i2c/pmbus_device.c index 62885fa6a1..efddc36fd9 100644 --- a/hw/i2c/pmbus_device.c +++ b/hw/i2c/pmbus_device.c @@ -1088,6 +1088,7 @@ static int pmbus_write_data(SMBusDevice *smd, uint8_t *buf, uint8_t len)if (pmdev->code == PMBUS_PAGE) {pmdev->page = pmbus_receive8(pmdev); + pmdev->out_buf_len = 0; return 0; }
[Prev in Thread] | Current Thread | [Next in Thread] |