[PATCH 0/3] Object properties for MAX31785 status, target, and input.

2022-07-14 Thread Maheswara Kurapati
eview. Thanks, Mahesh Maheswara Kurapati (3): qom/object : add object_property_add_int8_ptr() property for 8 bit signed integers. hw/sensor: max31785 : add fan status, tach target, and tach input object properties hw/sensor: max31785 : update the tach input based on the tach m

[PATCH 1/3] qom/object : add object_property_add_int8_ptr() property for 8 bit signed integers.

2022-07-14 Thread Maheswara Kurapati
Current implementation lacks the support to add signed 8 bit integer property to an Object. This fix adds the necessary infrastructure routines. Signed-off-by: Maheswara Kurapati --- include/qom/object.h | 21 qom/object.c | 60

[PATCH 3/3] hw/sensor: max31785 : update the tach input based on the tach margin percentage

2022-07-14 Thread Maheswara Kurapati
Update the tach input based on the percentage of tach target. The tach margin could be a +ve or -ve margin of the target tach rpm. Signed-off-by: Maheswara Kurapati --- hw/sensor/max31785.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/hw/sensor

[PATCH 2/3] hw/sensor: max31785 : add fan status, tach target, and tach input object properties

2022-07-14 Thread Maheswara Kurapati
-- FAN_COMMAND_1 (3Bh) fan_target STATUS_FANS_1_2 (81h) status_fans_1_2 READ_FAN_SPEED_1 (90h) fan_input Signed-off-by: Maheswara Kurapati --- hw/sensor/max31785.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/hw/sensor

Re: [PATCH 2/3] hw/sensor: max31785 : add fan status, tach target, and tach input object properties

2022-07-14 Thread Maheswara Kurapati
Hello Peter, Thank you for the review.  Please see my comments inline. Thank you, Mahesh On 7/14/22 8:10 AM, Peter Maydell wrote: On Thu, 14 Jul 2022 at 14:04, Maheswara Kurapati wrote: This fix adds object properties for the FAN_COMMAND_1 (3Bh), STATUS_FANS_1_2 (81h), READ_FAN_SPEED_1