Skip to content
Commit a3156be2 authored by Loic Prylli's avatar Loic Prylli Committed by Greg Kroah-Hartman
Browse files

hwmon: (aspeed-pwm-tacho) mutex for tach reading

[ Upstream commit 1168491e

 ]

the ASPEED_PTCR_RESULT Register can only hold the result for a
single fan input. Adding a mutex to protect the register until the
reading is done.

Signed-off-by: default avatarLoic Prylli <lprylli@netflix.com>
Signed-off-by: default avatarAlexander Hansen <alexander.hansen@9elements.com>
Fixes: 2d7a548a

 ("drivers: hwmon: Support for ASPEED PWM/Fan tach")
Link: https://lore.kernel.org/r/121d888762a1232ef403cf35230ccf7b3887083a.1699007401.git.alexander.hansen@9elements.com
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 40657466
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment