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 <Jonathan.Santos@xxxxxxxxxx> > --- Reviewed-by: David Lechner <dlechner@xxxxxxxxxxxx>