From: Guenter Roeck <linux@roeck-us.net>
To: Marius Cristea <marius.cristea@microchip.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH 2/2] hwmon: temperature: add support for EMC1812
Date: Wed, 29 Oct 2025 15:03:29 -0700 [thread overview]
Message-ID: <86b94f01-ff93-457e-95cc-4e87009964af@roeck-us.net> (raw)
In-Reply-To: <20251029-hw_mon-emc1812-v1-2-be4fd8af016a@microchip.com>
On Wed, Oct 29, 2025 at 05:50:59PM +0200, Marius Cristea wrote:
> This is the hwmon driver for Microchip EMC1812/13/14/15/33
> Multichannel Low-Voltage Remote Diode Sensor Family.
>
> Signed-off-by: Marius Cristea <marius.cristea@microchip.com>
One more ...
> +static int emc1812_parse_fw_config(struct emc1812_data *data, struct device *dev)
> +{
> + unsigned int reg_nr = 0;
> + int ret;
> +
I added
if (!dev_fwnode(dev)) {
data->num_channels = data->chip->phys_channels;
data->active_ch_mask = BIT(data->num_channels) - 1;
return 0;
}
to be able to load the driver and run basic unit tests.
I expect something similar in the final driver.
Also, here is the unit test result from writing negative values
into the limit registers:
temp1_crit: Suspected underflow: [min=0, read 4294903296, written -2147483648]
temp1_min: Suspected underflow: [min=0, read 4294903296, written -2147483648]
temp1_max: Suspected underflow: [min=0, read 4294903296, written -2147483648]
temp2_crit: Suspected underflow: [min=0, read 4294903296, written -2147483648]
temp2_min: Suspected underflow: [min=0, read 4294903296, written -2147483648]
temp2_max: Suspected underflow: [min=0, read 4294903296, written -2147483648]
Thanks,
Guenter
prev parent reply other threads:[~2025-10-29 22:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-29 15:50 [PATCH 0/2] Add support for Microchip EMC1812 Marius Cristea
2025-10-29 15:50 ` [PATCH 1/2] dt-bindings: hwmon: temperature: add support for EMC1812 Marius Cristea
2025-10-29 18:25 ` Conor Dooley
2025-11-03 16:35 ` Marius.Cristea
2025-11-04 8:39 ` Conor Dooley
2025-10-29 15:50 ` [PATCH 2/2] " Marius Cristea
2025-10-29 18:00 ` Guenter Roeck
2025-10-29 20:32 ` Guenter Roeck
2025-10-29 20:47 ` Guenter Roeck
2025-10-29 22:03 ` Guenter Roeck [this message]
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=86b94f01-ff93-457e-95cc-4e87009964af@roeck-us.net \
--to=linux@roeck-us.net \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marius.cristea@microchip.com \
--cc=robh@kernel.org \
/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