]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: dac: ad3552r-hs: use instruction mode for configuration
authorAngelo Dureghello <adureghello@baylibre.com>
Tue, 14 Jan 2025 15:30:15 +0000 (16:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:35 +0000 (11:13 +0200)
commit1f4ac475e95dd38771c17abf2a75fcfd56b6c9bc
treebc07fbae9dfa62d4c7f4480575e9baca2d08765f
parentd7bbb46d4b31d396fddec36d681827972a8e153b
iio: dac: ad3552r-hs: use instruction mode for configuration

[ Upstream commit 21889245fb538123ac9968eea0018f878b44c8c8 ]

Use "instruction" mode over initial configuration and all other
non-streaming operations.

DAC boots in streaming mode as default, and the driver is not
changing this mode.

Instruction r/w is still working because instruction is processed
from the DAC after chip select is deasserted, this works until
loop mode is 0 or greater than the instruction size.

All initial operations should be more safely done in instruction
mode, a mode provided for this.

Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Link: https://patch.msgid.link/20250114-wip-bl-ad3552r-axi-v0-iio-testing-carlos-v4-6-979402e33545@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/dac/ad3552r-hs.c