hwmon: (nct6775) Accept PECI Calibration as temperature source for NCT6798D
authorGuenter Roeck <linux@roeck-us.net>
Tue, 14 Jul 2020 21:31:11 +0000 (14:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:53 +0000 (10:19 +0200)
commit603b876a55dcefd49949cb2192ebc7ceb52275dd
tree92f41e7e4a88fc4ca6020d671166ad40a5c7a663
parent21869ebb9b74685d0668d42e55e628a29c969e62
hwmon: (nct6775) Accept PECI Calibration as temperature source for NCT6798D

[ Upstream commit 8a03746c8baf82e1616f05a1a716d34378dcf780 ]

Stefan Dietrich reports invalid temperature source messages on Asus Formula
XII Z490.

nct6775 nct6775.656: Invalid temperature source 28 at index 0,
source register 0x100, temp register 0x73

Debugging suggests that temperature source 28 reports the CPU temperature.
Let's assume that temperature sources 28 and 29 reflect "PECI Agent {0,1}
Calibration", similar to other chips of the series.

Reported-by: Stefan Dietrich <roots@gmx.de>
Cc: Stefan Dietrich <roots@gmx.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/nct6775.c