Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7986857pxb; Fri, 19 Feb 2021 04:42:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBdW8R5HnJR0ElFJbzVuGBH50Wf/LGK7SklOldWyd572qBhJA8SAY2jJ6eOZt5WQsC25wA X-Received: by 2002:aa7:c991:: with SMTP id c17mr8960388edt.165.1613738533637; Fri, 19 Feb 2021 04:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613738533; cv=none; d=google.com; s=arc-20160816; b=zDxM/f8F/EBwgfWuR1+iSlFzAkS2AgDxfhP7L/6Ueetvilr1DM9jg+YfrSpXm81HnF JX8TT5UQT7TTRUNPHtWtqouU91PZoVJuShANl2WBvmZfKrhOoCVkjeUxw5cmRvPsGMEy fhMljvvL0qf0A1RyXr6jh1GkBG9dl0iUbD/Wjpm722/LLLS4Zjj6FzpJM3JF1AB9bwiF KVLm3dL0W1mP5gZKu3FFLxX5+lvOJYO5piWDjnL1V6yK7QeiuW6dwe4P597O/K2zHsFB L423uA6uBbLDo2/N/Z2gLxM6I/usJXV0iovfHCmgt1WLjqVkxb7Mb+ckViJFv4gAff9y 9Qhw== 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 :message-id:date:subject:cc:to:from; bh=UyVgfAqUUPREJbgSOitXSTVlo3DY9/+OX5bqW+o3lzE=; b=eqU4kEUBuPf3kbyT1rgugT/7DClI83ry1H+Dwld2uTSuy0DtOkvnjIeQEEB1vHIqWm h1rrwhwG3H0qhRd0WTWdeNEPDCAc65Yx1S4weVsRaKaEN+mz6PL6Lu3ZX2KntlBF5spX lCwRAZIFl1aGmJzaACkbqioZA4pqjvU/woa7+eIZjNktoZqxo6hHnNvERacwhcsB9Tda ygDS9lUHUo0z8bNwHGeNq3vMM7t7gbaebDtyqTSUghHmN7Wom72lA33zQRZpu1mrp8wS gRnQx22n7SPStu+UgEg/xHTMxAFgiuShyBiAuWjeXOb0hJov4xN/eZOzqx3AKNh0pGNA bwXg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id js1si5163574ejc.662.2021.02.19.04.41.48; Fri, 19 Feb 2021 04:42:13 -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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbhBSMlQ (ORCPT + 99 others); Fri, 19 Feb 2021 07:41:16 -0500 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:52148 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbhBSMlO (ORCPT ); Fri, 19 Feb 2021 07:41:14 -0500 Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11JCdvIc005467; Fri, 19 Feb 2021 07:40:22 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 36pcjb27cu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Feb 2021 07:40:22 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 11JCeLpc052000 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Feb 2021 07:40:21 -0500 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.721.2; Fri, 19 Feb 2021 07:40:20 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.721.2; Fri, 19 Feb 2021 07:40:20 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.721.2 via Frontend Transport; Fri, 19 Feb 2021 07:40:20 -0500 Received: from saturn.ad.analog.com ([10.48.65.120]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 11JCeH4p008911; Fri, 19 Feb 2021 07:40:17 -0500 From: Alexandru Ardelean To: , CC: , , , , , Alexandru Ardelean Subject: [PATCH v3 0/6] iio: Add output buffer support Date: Fri, 19 Feb 2021 14:40:06 +0200 Message-ID: <20210219124012.92897-1-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-02-19_05:2021-02-18,2021-02-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 spamscore=0 bulkscore=0 mlxscore=0 malwarescore=0 suspectscore=0 adultscore=9 clxscore=1015 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102190102 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 * 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(-) -- 2.27.0