From: "Philippe Mathieu-Daudé" <philippe.mathieu.daude@gmail.com>
To: Titus Rwantare <titusr@google.com>, Corey Minyard <minyard@acm.org>
Cc: peter.maydell@linaro.org, venture@google.com,
qemu-devel@nongnu.org, f4bug@amsat.org, wuhaotsh@google.com,
qemu-arm@nongnu.org
Subject: Re: [PATCH v3 9/9] hw/sensor: add Renesas raa228000 device
Date: Sat, 5 Mar 2022 00:58:41 +0100 [thread overview]
Message-ID: <bd27a91d-5e8c-3cef-7eaa-577a0940469e@gmail.com> (raw)
In-Reply-To: <20220302015053.1984165-10-titusr@google.com>
On 2/3/22 02:50, Titus Rwantare wrote:
> Signed-off-by: Titus Rwantare <titusr@google.com>
> Reviewed-by: Hao Wu <wuhaotsh@google.com>
> ---
> hw/sensor/isl_pmbus_vr.c | 50 ++++++++++++++++++++
> include/hw/sensor/isl_pmbus_vr.h | 1 +
> tests/qtest/isl_pmbus_vr-test.c | 78 ++++++++++++++++++++++++++++++--
> 3 files changed, 126 insertions(+), 3 deletions(-)
>
> diff --git a/hw/sensor/isl_pmbus_vr.c b/hw/sensor/isl_pmbus_vr.c
> index e260faeac3..df7c003ea6 100644
> --- a/hw/sensor/isl_pmbus_vr.c
> +++ b/hw/sensor/isl_pmbus_vr.c
> @@ -89,6 +89,24 @@ static void isl_pmbus_vr_exit_reset(Object *obj)
> }
> }
>
> +/* The raa228000 uses different direct mode coefficents from most isl devices */
> +static void raa228000_exit_reset(Object *obj)
> +{
> + isl_pmbus_vr_exit_reset(obj);
> +
> + PMBusDevice *pmdev = PMBUS_DEVICE(obj);
Per QEMU CodingStyle, variables are declared first.
> + pmdev->pages[0].read_vout = 0;
> + pmdev->pages[0].read_iout = 0;
> + pmdev->pages[0].read_pout = 0;
> + pmdev->pages[0].read_vin = 0;
> + pmdev->pages[0].read_iin = 0;
> + pmdev->pages[0].read_pin = 0;
> + pmdev->pages[0].read_temperature_1 = 0;
> + pmdev->pages[0].read_temperature_2 = 0;
> + pmdev->pages[0].read_temperature_3 = 0;
> +}
> /* test qmp access */
> static void test_tx_rx(void *obj, void *data, QGuestAllocator *alloc)
> {
> @@ -384,9 +448,6 @@ static void isl_pmbus_vr_register_nodes(void)
> qos_node_create_driver("isl69260", i2c_device_create);
> qos_node_consumes("isl69260", "i2c-bus", &opts);
>
> - qos_node_create_driver("raa229004", i2c_device_create);
> - qos_node_consumes("raa229004", "i2c-bus", &opts);
> -
> qos_add_test("test_defaults", "isl69260", test_defaults, NULL);
> qos_add_test("test_tx_rx", "isl69260", test_tx_rx, NULL);
> qos_add_test("test_rw_regs", "isl69260", test_rw_regs, NULL);
> @@ -394,9 +455,20 @@ static void isl_pmbus_vr_register_nodes(void)
> qos_add_test("test_ro_regs", "isl69260", test_ro_regs, NULL);
> qos_add_test("test_ov_faults", "isl69260", test_voltage_faults, NULL);
>
> + qos_node_create_driver("raa229004", i2c_device_create);
> + qos_node_consumes("raa229004", "i2c-bus", &opts);
> +
Squash in previous commit?
> qos_add_test("test_tx_rx", "raa229004", test_tx_rx, NULL);
> qos_add_test("test_rw_regs", "raa229004", test_rw_regs, NULL);
> qos_add_test("test_pages_rw", "raa229004", test_pages_rw, NULL);
> qos_add_test("test_ov_faults", "raa229004", test_voltage_faults, NULL);
Otherwise,
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
next prev parent reply other threads:[~2022-03-05 0:01 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-02 1:50 [PATCH v3 0/9] This patch series contains updates to PMBus in QEMU along with some PMBus device models for Renesas regulators. I have also added myself to MAINTAINERS as this code is in use daily, where I am responsible for it Titus Rwantare
2022-03-02 1:50 ` [PATCH v3 1/9] hw/i2c: pmbus: add registers Titus Rwantare
2022-03-05 0:19 ` Philippe Mathieu-Daudé
2022-03-02 1:50 ` [PATCH v3 2/9] hw/i2c: pmbus: guard against out of range accesses Titus Rwantare
2022-03-05 0:08 ` Philippe Mathieu-Daudé
2022-03-07 19:30 ` Titus Rwantare
2022-03-02 1:50 ` [PATCH v3 3/9] hw/i2c: pmbus: add PEC unsupported warning Titus Rwantare
2022-03-05 0:01 ` Philippe Mathieu-Daudé
2022-03-07 19:31 ` Titus Rwantare
2022-03-02 1:50 ` [PATCH v3 4/9] hw/i2c: pmbus: refactor uint handling Titus Rwantare
2022-03-04 23:59 ` Philippe Mathieu-Daudé
2022-03-02 1:50 ` [PATCH v3 5/9] hw/i2c: pmbus: update MAINTAINERS Titus Rwantare
2022-03-04 23:52 ` Philippe Mathieu-Daudé
2022-03-02 1:50 ` [PATCH v3 6/9] hw/i2c: Added linear mode translation for pmbus devices Titus Rwantare
2022-03-04 23:53 ` Philippe Mathieu-Daudé
2022-03-02 1:50 ` [PATCH v3 7/9] hw/sensor: add Intersil ISL69260 device model Titus Rwantare
2022-03-05 0:17 ` Philippe Mathieu-Daudé
2022-03-02 1:50 ` [PATCH v3 8/9] hw/sensor: add Renesas raa229004 PMBus device Titus Rwantare
2022-03-04 23:54 ` Philippe Mathieu-Daudé
2022-03-02 1:50 ` [PATCH v3 9/9] hw/sensor: add Renesas raa228000 device Titus Rwantare
2022-03-04 23:58 ` Philippe Mathieu-Daudé [this message]
2022-03-04 21:43 ` [PATCH v3 0/9] This patch series contains updates to PMBus in QEMU along with some PMBus device models for Renesas regulators. I have also added myself to MAINTAINERS as this code is in use daily, where I am responsible for it Corey Minyard
2022-03-04 23:42 ` Titus Rwantare
2022-03-07 0:00 ` Philippe Mathieu-Daudé
2022-03-08 13:53 ` Corey Minyard
2022-03-08 18:08 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bd27a91d-5e8c-3cef-7eaa-577a0940469e@gmail.com \
--to=philippe.mathieu.daude@gmail.com \
--cc=f4bug@amsat.org \
--cc=minyard@acm.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=titusr@google.com \
--cc=venture@google.com \
--cc=wuhaotsh@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).