mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
tools/testing/nvdimm: Fix support for emulating controller temperature
[ Upstream commite5d772fbe7] In addition to populating the value the payload also needs to set the "controller temperature valid" flag. Fixes:cdd77d3e19("nfit, libnvdimm: deprecate the generic SMART ioctl") Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
22df0497e1
commit
67a281a8be
@@ -1308,7 +1308,8 @@ static void smart_init(struct nfit_test *t)
|
||||
| ND_INTEL_SMART_ALARM_VALID
|
||||
| ND_INTEL_SMART_USED_VALID
|
||||
| ND_INTEL_SMART_SHUTDOWN_VALID
|
||||
| ND_INTEL_SMART_MTEMP_VALID,
|
||||
| ND_INTEL_SMART_MTEMP_VALID
|
||||
| ND_INTEL_SMART_CTEMP_VALID,
|
||||
.health = ND_INTEL_SMART_NON_CRITICAL_HEALTH,
|
||||
.media_temperature = 23 * 16,
|
||||
.ctrl_temperature = 25 * 16,
|
||||
|
||||
Reference in New Issue
Block a user