Re: [PATCH RESEND v3 07/17] iio: adc: ad7768-1: remove unnecessary locking
From: David Lechner <dlechner@baylibre.com>
Date: 2025-02-20 21:30:41
Also in:
linux-iio, lkml
From: David Lechner <dlechner@baylibre.com>
Date: 2025-02-20 21:30:41
Also in:
linux-iio, lkml
On 2/12/25 12:17 PM, Jonathan Santos wrote:
The current locking is only preventing a triggered buffer Transfer and a debugfs register access from happening at the same time. If a register access happens during a buffered read, the action is doomed to fail anyway, since we need to write a magic value to exit continuous read mode. Remove locking from the trigger handler and use iio_device_claim_direct_mode() instead in the register access function. Signed-off-by: Jonathan Santos <redacted> ---
Reviewed-by: David Lechner <dlechner@baylibre.com>