summaryrefslogtreecommitdiff
path: root/drivers/clk/eswin/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorRodrigo Alencar <rodrigo.alencar@analog.com>2026-05-05 13:35:04 +0100
committerJonathan Cameron <jic23@kernel.org>2026-05-15 12:05:35 +0100
commit5237c3175cae5ab05f18878cec3301a04403859e (patch)
tree7be5ec7519f346ceeace4f3423ed6a56a475ad7d /drivers/clk/eswin/git@git.tavy.me:linux.git
parent4701e471c16866e7aa8f5e6a3a6b0d31e097e2c9 (diff)
iio: dac: ad5686: acquire lock when doing powerdown control
Protect access of pwr_down_mode and pwr_down_mask fields with existing mutex lock. Each channel exposes their own attributes for controlling powerdown modes and powerdown state. This fixes potential race conditions as those the write functions perform non-atomic read-modify-write operations to those pwr_down_* fields. This issue exists since the ad5686 driver was first introduced. Fixes: c2f37c8dcadc ("iio: dac: New driver for AD5686R, AD5685R, AD5684R Digital to analog converters") Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/clk/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions