From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B38FC433FE for ; Thu, 16 Sep 2021 18:29:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3947B61029 for ; Thu, 16 Sep 2021 18:29:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240389AbhIPSbG (ORCPT ); Thu, 16 Sep 2021 14:31:06 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:17872 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240604AbhIPSbC (ORCPT ); Thu, 16 Sep 2021 14:31:02 -0400 Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18GG1Z1g008841; Thu, 16 Sep 2021 14:29:29 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 3b40gctb71-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Sep 2021 14:29:29 -0400 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 18GITS8r033505 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 16 Sep 2021 14:29:28 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.5; Thu, 16 Sep 2021 14:29:27 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.858.5 via Frontend Transport; Thu, 16 Sep 2021 14:29:27 -0400 Received: from ubuntuservermchindri.ad.analog.com ([10.32.224.24]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 18GITO8m025646; Thu, 16 Sep 2021 14:29:25 -0400 From: Mihail Chindris To: , CC: , , , , , , Mihail Chindris Subject: [PATCH v5 0/6] iio: Add output buffer support Date: Thu, 16 Sep 2021 18:29:08 +0000 Message-ID: <20210916182914.1810-1-mihail.chindris@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-ORIG-GUID: imbC8PMCZngwTBk-9eMBv3dxqWEHAqSG X-Proofpoint-GUID: imbC8PMCZngwTBk-9eMBv3dxqWEHAqSG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-16_05,2021-09-16_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxscore=0 spamscore=0 clxscore=1015 adultscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109030001 definitions=main-2109160106 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changelog v4 -> v5: * Remove ad3552r example from series and replace with the update of an existing driver: ad5662. Will add ad3552r in other another series. * Make normal comment from kernel-doc comment. (A bot was complaining about that) * Add indio_dev->info check * Rename iio_buffer_remove_sample -> iio_pop_from_buffer * Fix comment of remove_from: sample -> scan * Change iio_pop_from_buffer data type to void * to be consistent with iio_push_to_buffers * Remove use watermark, in our kernel is not used and I can't think of an usecase for it. * Reimplement write to increment buffer index and handle blocking and noblocking calls * Move `if (insert_buffer->direction == IIO_BUFFER_DIRECTION_OUT)` outside lock * Remove redundant checks of `if (insert_buffer->direction == IIO_BUFFER_DIRECTION_OUT)` Alexandru Ardelean (1): iio: triggered-buffer: extend support to configure output buffers Lars-Peter Clausen (1): iio: kfifo-buffer: Add output buffer support Mihail Chindris (4): iio: Add output buffer support drivers: iio: dac: ad5766: Fix dt property name Documentation:devicetree:bindings:iio:dac: Fix val drivers:iio:dac:ad5766.c: Add trigger buffer .../bindings/iio/dac/adi,ad5766.yaml | 2 +- drivers/iio/accel/adxl372.c | 1 + drivers/iio/accel/bmc150-accel-core.c | 1 + drivers/iio/adc/at91-sama5d2_adc.c | 4 +- .../buffer/industrialio-triggered-buffer.c | 8 +- drivers/iio/buffer/kfifo_buf.c | 50 ++++++++ .../cros_ec_sensors/cros_ec_sensors_core.c | 5 +- .../common/hid-sensors/hid-sensor-trigger.c | 5 +- drivers/iio/dac/ad5766.c | 42 +++++- drivers/iio/iio_core.h | 4 + drivers/iio/industrialio-buffer.c | 120 +++++++++++++++++- drivers/iio/industrialio-core.c | 1 + include/linux/iio/buffer.h | 7 + include/linux/iio/buffer_impl.h | 11 ++ include/linux/iio/triggered_buffer.h | 11 +- 15 files changed, 256 insertions(+), 16 deletions(-) base-commit: 94a853eca720ac9e385e59f27e859b4a01123f58 -- 2.27.0