]> 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)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Feb 2025 15:10:15 +0000 (15:10 +0000)
commit21889245fb538123ac9968eea0018f878b44c8c8
tree3c070a570fa31ae831be903b1e223c0669d2b00f
parent96873eeaa7959a4b23a4d2b771b8b67cf8a96caf
iio: dac: ad3552r-hs: use instruction mode for configuration

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>
drivers/iio/dac/ad3552r-hs.c