Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2345110rdd; Fri, 12 Jan 2024 06:55:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFh2buAWIFtJrVN0aU4cU7MjEO/BefGsu2hRtISBqNvlLIVTuTvDNxJp+6bhXA/ghQm8uE X-Received: by 2002:a05:622a:e:b0:429:9d1e:8e92 with SMTP id x14-20020a05622a000e00b004299d1e8e92mr3495039qtw.38.1705071359016; Fri, 12 Jan 2024 06:55:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705071359; cv=none; d=google.com; s=arc-20160816; b=fPDPqlrsZaqtjVtv0dFwxPUyeWXTzkZLu3YLrPjGWCVEGBezPAtOIgtUPkUGDrwaTa 0ew5lMVo/zkgRJfbFk5E8WH7hwR37AEd68jRzvmHh3OMvxLuQRgfT5MasLLhHuHQxRpd 2D79Xv8J+U/7Z5MFGJ1qy5yW7JP/njm1McYjkk+RPxLYCAXROLF1Zy4UYrpa947sfX+f NElWpTqECFKILTsaoCDaCYYtt9P1HM0itGOW9b7xeHqPd6eDikl6WOFq28yNEJVftQWl +sm9hBVD48oqakaGckQcTgzfHlqCszDnwOdzkOdAx4wYauTgU4BnTBjKm6R+HzMEWPOK JCug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=+L9xJDVEsE7V3csU6sYKZtbMRfUFtdtCzJGzvU7993M=; fh=IzlvqyVGOmz32KAzelt1TX6goL869L7x7kjlGm57LCQ=; b=khXZ9K2CtEpr6cWTkU+3ar6+vL/xjAS1EDig7xPuCx18/ifZQuQW3/xhrkxVPS0vJd J4bv9wO6B3lIHKHmIJ3rLoPqXngPnz3R5QG+YN7+lR+c5XgPPLN64DnrTeTq5Nr071++ 2Tu1r6QsO6yqt6cdLodJ5+byTGKYoJAlEwbp5BQiEa5IxEnPbpXbKcrcBoSJJQCK/ZTU 7kM90spTBB95rlWNAPVEsEeC9V4B6nLf51n9jALGBEBpRduQtB6sbfOJ0M5zhHZ+ftS3 XSsJ0Dkwt9HTM7egUDxG1sTwn2XdNO5HUh3sHRf3iLohgvPI7roA9yhLfBkedinLTQ2v Fitw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=neAeT8Xs; spf=pass (google.com: domain of linux-kernel+bounces-24775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24775-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h21-20020ac87d55000000b004297765bca5si3066096qtb.773.2024.01.12.06.55.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 06:55:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=neAeT8Xs; spf=pass (google.com: domain of linux-kernel+bounces-24775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24775-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B977F1C24670 for ; Fri, 12 Jan 2024 14:55:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80C1B6EB5E; Fri, 12 Jan 2024 14:55:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="neAeT8Xs" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB18E6E2C8 for ; Fri, 12 Jan 2024 14:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2cca5d81826so87599261fa.2 for ; Fri, 12 Jan 2024 06:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1705071325; x=1705676125; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+L9xJDVEsE7V3csU6sYKZtbMRfUFtdtCzJGzvU7993M=; b=neAeT8XsY2KdELItdqx8vka/T7u8iZ1br+YyzJ66sp++PsaSwbcpzQBbafe7kn4Yup ob/fgH1cbZ54UfcRoXIcwbwIUuEK8cbNxm/y/BAFdWYhGVJ3BPdFwNmGmelgLiylWH6x 5euzjlgFG8peaiL1Yju9cW5Jtnkq9SMTtrUAkkQXjSa1p0A4rUEpOxw3+sZZCgZsYhKG D7U64C3EKTZ1n1p+WGVNduEy2gZHvIlj2/495fUKi/T2zkcJGxDjIvBqS7DclZRZoF3c Vn87/dvtQd6g/ZQZj7yJGLnuF+DFXSqPVvA+lYX847xapKRI0JcVyZsW108ekSQEA+zJ Ya2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705071325; x=1705676125; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+L9xJDVEsE7V3csU6sYKZtbMRfUFtdtCzJGzvU7993M=; b=XPzYun9IRNFQt6XkNY35qXsgOnsSdoW6rvxPxaQXEfD9fuSMulV4AYWP6pT+mdyzWt RKRmsXHHNqBsE4kJiUy/i8br0eabrAPHETIMrylP2DwVQmzYiiKejW1UpgY5C5xZNM4b pRHQjZuZoMHv8Nkdn7BHmvvzbL8qPmbcFUQBQi7sQLV2R4wn9rUobaopzIjRtHo5/k0+ mZNhQOPMhWmuwriXxBdEzg7GMAb1wZewOsdVfBxPkNhrQURd2UzzNLinL32aYER2nPE2 HUk1Y0YgRdDWvbLUXygff6Z+VLLgIZCWE/CjQqZpcmuphugHqXV6YVliTm4UTZlL9UgN u4Rg== X-Gm-Message-State: AOJu0Yy846r9ORuxsrZjrB5UQ+lk3G6qfYq1s9VPtstz6GO4qdamyQf1 rJlbi3PZv37SJivohVcqmYjccHUbrZztcfmYoh+Cp12qfHkOLw== X-Received: by 2002:a2e:b0d9:0:b0:2cc:f31b:56ea with SMTP id g25-20020a2eb0d9000000b002ccf31b56eamr844666ljl.92.1705071324606; Fri, 12 Jan 2024 06:55:24 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240109-axi-spi-engine-series-3-v1-0-e42c6a986580@baylibre.com> <20240109-axi-spi-engine-series-3-v1-10-e42c6a986580@baylibre.com> <20240112123759.00007440@Huawei.com> In-Reply-To: <20240112123759.00007440@Huawei.com> From: David Lechner Date: Fri, 12 Jan 2024 08:55:13 -0600 Message-ID: Subject: Re: [PATCH 10/13] iio: buffer: dmaengine: export devm_iio_dmaengine_buffer_alloc() To: Jonathan Cameron Cc: Mark Brown , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , =?UTF-8?B?TnVubyBTw6E=?= , Frank Rowand , Thierry Reding , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Jonathan Corbet , linux-spi@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jan 12, 2024 at 6:38=E2=80=AFAM Jonathan Cameron wrote: > > On Wed, 10 Jan 2024 13:49:51 -0600 > David Lechner wrote: > > > This changes devm_iio_dmaengine_buffer_alloc() to an exported symbol. > > This will be used by drivers that need to allocate a DMA buffer without > > attaching it to an IIO device. > > > > Signed-off-by: David Lechner > > --- > > Documentation/driver-api/driver-model/devres.rst | 1 + > > drivers/iio/buffer/Kconfig | 14 +++++++------- > > drivers/iio/buffer/industrialio-buffer-dmaengine.c | 3 ++- > > include/linux/iio/buffer-dmaengine.h | 2 ++ > > 4 files changed, 12 insertions(+), 8 deletions(-) > > > > diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documen= tation/driver-api/driver-model/devres.rst > > index b23d4a2b68a6..60e4b7ba38e5 100644 > > --- a/Documentation/driver-api/driver-model/devres.rst > > +++ b/Documentation/driver-api/driver-model/devres.rst > > @@ -285,6 +285,7 @@ I2C > > IIO > > devm_iio_device_alloc() > > devm_iio_device_register() > > + devm_iio_dmaengine_buffer_alloc() > > devm_iio_dmaengine_buffer_setup() > > devm_iio_kfifo_buffer_setup() > > devm_iio_kfifo_buffer_setup_ext() > > diff --git a/drivers/iio/buffer/Kconfig b/drivers/iio/buffer/Kconfig > > index 925c5bf074bc..27d82fb4bc4d 100644 > > --- a/drivers/iio/buffer/Kconfig > > +++ b/drivers/iio/buffer/Kconfig > > @@ -40,6 +40,13 @@ config IIO_BUFFER_HW_CONSUMER > > Should be selected by drivers that want to use the generic Hw c= onsumer > > interface. > > > > +config IIO_HW_TRIGGERED_BUFFER > > + tristate "Industrial I/O hardware triggered buffer support" > > + select AUXILIARY_BUS > > + select IIO_TRIGGER > > + help > > + Provides helper functions for setting up hardware triggered buf= fers. > > + > > config IIO_KFIFO_BUF > > tristate "Industrial I/O buffering based on kfifo" > > help > > @@ -53,10 +60,3 @@ config IIO_TRIGGERED_BUFFER > > select IIO_KFIFO_BUF > > help > > Provides helper functions for setting up triggered buffers. > > - > > -config IIO_HW_TRIGGERED_BUFFER > > - tristate "Industrial I/O hardware triggered buffer support" > > - select AUXILIARY_BUS > > - select IIO_TRIGGER > > - help > > - Provides helper functions for setting up hardware triggered buf= fers. > > Why move this? > Oops, this shouldn't be here. Looks like an artifact from a botched rebase. The intention was to put it in alphabetical order.