Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp891730pxb; Sun, 21 Feb 2021 04:05:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5wL+Atsbsxc1qAA0fgWvGsMUsBIzO+W3Kr4bB7YObc9di/OWqRSJViyWYMbGK1leRBcv+ X-Received: by 2002:a50:fe89:: with SMTP id d9mr18019537edt.57.1613909131795; Sun, 21 Feb 2021 04:05:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613909131; cv=none; d=google.com; s=arc-20160816; b=cClC6oDTqFmRTFaLzttrVvZeRegJ61N6av9E40T9WXvOvsbZgBRiufVwgaCRSOGbMZ lK+aQhu94jLluG3wQLYgB64OGQug3NSGrZDCB8nCHzKehnhS/0ZCBvGx3wj/CMecso3h 16+dRXLmDPJJi1F+jp9bjNJqVP/mFjR+je65/2qE25JimCmcE+bMeNlydGinUYMum5ye 66aWduXzuZUDMFdzRjvRG3KFM/ifP3ly10btO5dgDL/nU4bDD1utWRtL02R2UqIEyzWx hp9t+qINjjKI4m+cwco7b3yJ0XKrbOtLHQYvsMcX+gqCdWqGnrsty0gDTfZVwou+Z1dQ BJNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=pqQbN3gZJTxYOucpt0LByWnhb1cZXu5DOycjgRPn7p0=; b=UxdyTVg9X6XgXtdFgd1j6EokPcvIduQB2C02yxbY1L9PlE4XY2f2NRQxXRsu91G3ny L6yWC7lDt5Vybcmesv0XI3mfeUabR81Y2l9z/RltxoNof3Yp8taEELws9plr3bxhi9++ dQ/Po4Bhxqdy3R94raNdY4FAV9goAz4RWayqpgW3jzIOH2uDap3vbSxujcQRbf1WCGDx FNc7SPvTWf5EQmnW/XBG03oVyh3AgU0xDWPQfHaL8GxTA+y8uaNcpxqzv1wDegKJa+u6 T6kPeXkQGssrn9eoEXUmLYEe0oGHFnCUn7ERvHbNCrZVZFgNvzRljUSW2hxWtJN0t7N4 uA1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si9975949edn.209.2021.02.21.04.05.08; Sun, 21 Feb 2021 04:05:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229902AbhBUMB4 (ORCPT + 99 others); Sun, 21 Feb 2021 07:01:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:56598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbhBUMBv (ORCPT ); Sun, 21 Feb 2021 07:01:51 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C2D664F03; Sun, 21 Feb 2021 12:01:09 +0000 (UTC) Date: Sun, 21 Feb 2021 12:01:06 +0000 From: Jonathan Cameron To: Alexandru Ardelean Cc: , , , , , Subject: Re: [PATCH v3 0/6] iio: Add output buffer support Message-ID: <20210221120106.00ae1078@archlinux> In-Reply-To: <20210219124012.92897-1-alexandru.ardelean@analog.com> References: <20210219124012.92897-1-alexandru.ardelean@analog.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Feb 2021 14:40:06 +0200 Alexandru Ardelean wrote: > Changelog v2 -> v3: > * https://lore.kernel.org/linux-iio/20210217083438.37865-4-alexandru.ardelean@analog.com/T/#m396545e0c6cc9d58e17f4d79b6fc707fd0373d89 > * adding only infrastructure pieces for output DAC buffers, unfortunately I > couldn't finish a complete DAC change to showcase these changes For that I wonder if the driver you did previously would work with the hrtimer trigger (so just drop the pwm stuff). Obviously we'd want someone to sanity check that with the hardware. An alternative (for now) would be to add a simple example to the dummy driver. I'm not keen to take this series without the user, but I'll review it on basis we'll get that sorted fairly soon in some fashion. Jonathan > * patch 'iio: Add output buffer support' > - moved new 'bufferY/direction' attribute at the end and added > comment about what it should be added at the end > * removed Lars' comment '/* need a way of knowing if there may be enough data... */' > * updated some various formatting; > > Alexandru Ardelean (1): > iio: triggered-buffer: extend support to configure output buffers > > Lars-Peter Clausen (5): > iio: Add output buffer support > iio: kfifo-buffer: Add output buffer support > iio: buffer-dma: Allow to provide custom buffer ops > iio: buffer-dma: Add output buffer support > iio: buffer-dma: add support for cyclic DMA transfers > > Documentation/ABI/testing/sysfs-bus-iio | 7 + > drivers/iio/accel/adxl372.c | 1 + > drivers/iio/accel/bmc150-accel-core.c | 1 + > drivers/iio/adc/adi-axi-adc.c | 4 +- > drivers/iio/adc/at91-sama5d2_adc.c | 4 +- > drivers/iio/buffer/industrialio-buffer-dma.c | 120 ++++++++++++++-- > .../buffer/industrialio-buffer-dmaengine.c | 72 +++++++--- > .../buffer/industrialio-triggered-buffer.c | 8 +- > drivers/iio/buffer/kfifo_buf.c | 50 +++++++ > .../cros_ec_sensors/cros_ec_sensors_core.c | 1 + > .../common/hid-sensors/hid-sensor-trigger.c | 5 +- > drivers/iio/industrialio-buffer.c | 133 +++++++++++++++++- > include/linux/iio/buffer-dma.h | 11 +- > include/linux/iio/buffer-dmaengine.h | 8 +- > include/linux/iio/buffer.h | 7 + > include/linux/iio/buffer_impl.h | 11 ++ > include/linux/iio/triggered_buffer.h | 11 +- > include/uapi/linux/iio/buffer.h | 1 + > 18 files changed, 412 insertions(+), 43 deletions(-) >