diff options
author | Erik Schumacher <erik.schumacher@iris-sensing.com> | 2025-02-24 09:19:04 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-13 13:02:05 +0100 |
commit | 596ababab7597ec8deab2c4a0f530cfbc88889cf (patch) | |
tree | f5bf44eca5697f6542d2130b49b4a504ef599d75 /kernel | |
parent | 274e2692ec83e77c23f32184e01795134b63f0b4 (diff) | |
download | linux-596ababab7597ec8deab2c4a0f530cfbc88889cf.tar.gz linux-596ababab7597ec8deab2c4a0f530cfbc88889cf.tar.bz2 linux-596ababab7597ec8deab2c4a0f530cfbc88889cf.zip |
hwmon: (ad7314) Validate leading zero bits and return error
[ Upstream commit e278d5e8aef4c0a1d9a9fa8b8910d713a89aa800 ]
Leading zero bits are sent on the bus before the temperature value is
transmitted. If any of these bits are high, the connection might be
unstable or there could be no AD7314 / ADT730x (or compatible) at all.
Return -EIO in that case.
Signed-off-by: Erik Schumacher <erik.schumacher@iris-sensing.com>
Fixes: 4f3a659581cab ("hwmon: AD7314 driver (ported from IIO)")
Link: https://lore.kernel.org/r/24a50c2981a318580aca8f50d23be7987b69ea00.camel@iris-sensing.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions