Skip to content

Commit 06a4a0c

Browse files
Demon000jic23
authored andcommitted
iio: ABI: add note about configuring other attributes during buffer capture
It might be impossible to configure other attributes (e.g.: events, scale, sampling rate) if they impact the currently active buffer capture session. On ADXL367, writing to register before 0x2E requires the device to be placed in standby mode, otherwise the changes might be effective for only part of a measurement. To ensure this requirement, the configuration attributes of the IIO device try to claim direct mode before switching to standby mode. During a buffer capture, direct mode cannot be claimed, and the attribute write callback returns -EBUSY. Describe this behavior in the buffer/enable attribute description. Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com> Link: https://lore.kernel.org/r/20220214073810.781016-4-cosmin.tanislav@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 89d1858 commit 06a4a0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/ABI/testing/sysfs-bus-iio

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,10 @@ Description:
12781278
Actually start the buffer capture up. Will start trigger
12791279
if first device and appropriate.
12801280

1281+
Note that it might be impossible to configure other attributes,
1282+
(e.g.: events, scale, sampling rate) if they impact the currently
1283+
active buffer capture session.
1284+
12811285
What: /sys/bus/iio/devices/iio:deviceX/bufferY
12821286
KernelVersion: 5.11
12831287
Contact: linux-iio@vger.kernel.org

0 commit comments

Comments
 (0)