Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1204815rdd; Wed, 10 Jan 2024 11:52:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IH719iBTEjawdDppF7ksxgX0CExXM+jM/7kYEq53cUhgGoySywTle5HPZ5erz1ciHHuRLIM X-Received: by 2002:a05:6a21:81a3:b0:199:5cb6:63fa with SMTP id pd35-20020a056a2181a300b001995cb663famr806074pzb.58.1704916367826; Wed, 10 Jan 2024 11:52:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704916367; cv=none; d=google.com; s=arc-20160816; b=zRpoQKYTyY+oBX9xaTE+Hqlgo+/bRRyGeSsUzU21A32uI5TA9rUuPrWPzdroeORdsA 9D/EEFH6vrY4otJaHx/O67/wy5PcnzA9fz0WhWXHEgpw5clEu0Jo+JXBnzUEMnT+ok3X wzdPafrwJ5gXY1xMcR7wiVY6lyR7XsL+t7dvxxaXUnUtsTvpksmHDMbIcDLGfUfUrfAI 8ErJPDdw9oeWnVCOmAm2MoDdbjP/qgtNGjFf5K/qz7B9BIqTdppEgmAoM/VfVtUjNp5G O+1fCJ/fXZUNzcZz0fl5e34SaPP7CmMoxjKCktJjfw7x8JRxNDnIW/idUVrb+QE6B+uO wb2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jqqZ1xFBo82n6w1dVaiJcbo432Ln6B24n8maUrb2mjE=; fh=cIqT9NcZdjUqupo3CRF2zie7E78k65IMo1it3Fi0alA=; b=E5eiWuIjOcOjm9jncqiF3nmBhI3dAoiE7OkTT/POtNZEhNYJvR1dzeS0AhbmXxyXB0 FQxL2yd1/DqXKK+cbR6dLan1E5sdC/N3QIx61YM41aOmXjrMIxTubgKkN6W3AGULEbT0 jGw98FTlRV11OM9Ush/8Q29gHVCepYxYTjs+Cx5RdD9RSRoEG/Anrph5Xru/jC3mqKd0 Wod/+s+WxXyLJaEoFY8iEp+Xe+yIY27wBD0JsVtUrtpfFGVXqNZaRXBcWa8ZD+g7Bp3i x6IVX5XWfj4RNl48X9GosGtM+KGTg6WjYMQUAUoWe5sJZIHdvlLrbR3IlhVf6iAQLt05 E1Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=O9k1ATy+; spf=pass (google.com: domain of linux-kernel+bounces-22677-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22677-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w1-20020a626201000000b006d9aaab0b5esi4149099pfb.351.2024.01.10.11.52.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 11:52:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22677-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=O9k1ATy+; spf=pass (google.com: domain of linux-kernel+bounces-22677-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22677-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 15C97284EF3 for ; Wed, 10 Jan 2024 19:52:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C36A5024A; Wed, 10 Jan 2024 19:51:21 +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="O9k1ATy+" Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (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 6D1224EB3C for ; Wed, 10 Jan 2024 19:51:16 +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-oo1-f45.google.com with SMTP id 006d021491bc7-59827210160so1975445eaf.1 for ; Wed, 10 Jan 2024 11:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1704916275; x=1705521075; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jqqZ1xFBo82n6w1dVaiJcbo432Ln6B24n8maUrb2mjE=; b=O9k1ATy+T89/CZvFYID+81bz5WDTQh/+XvcBDMsj8tdNpV1z0rqQu57uYQRlIO6wJK YXDzg37ZwMMbC9fEudVU27qkgDQ5oRJw/hrGEyqafUT//j1eTc7MjCPjFafmSqYjbJGN 8taVXuHsKE5BCwPqydf2bLmxnAy7kgSgADSCKAjCcvOMZNoAbeWz7adTbYIzLxtxnOjd BT+nA0QK+2x1wyWvxwKgudoEHwQ7hIZk+aY/I+snjpSWb+XvzyTBHICU4qsCpPD+EPEf u2PJ2N+00gE9sZ9MTbY8wY43bR3oTzgkpxajp7Q7t8y2vxb0Rjx6JsWC966MaQsLmHmu qBoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704916275; x=1705521075; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jqqZ1xFBo82n6w1dVaiJcbo432Ln6B24n8maUrb2mjE=; b=EsLaxN4zFmqGmlcMOG+pN5dZkIzbgcpBnHJ+Kq9QWKYhxPWisrPU2iWnoLnqjYHUSF psrzQIf9mi8okG+qtVqc9YRTFEWM59VD7f+gfZWIVYQ9pL/vw5viVhddzfF1AZ84DsVO RCpXMhNo96ZzqOAHCiuCVVjrulojcngb4BMRSrMY/DcpNGoMJe01AYBguPFdIuTjbM9t nekdI1SWA4iJT4CDCpLVdtIgBooOX/bxDonV1hr43FeC7Vw70ophh2JzhrhvMUrGbTFU ZwV8NpTBqXNZoPsG7b/bcJI7aJDjhmqGLTp8qxkoOJog9GX/nhHUPSd28gxdu9U1zOVf fiyA== X-Gm-Message-State: AOJu0YyQDc2ovzpwt6dMkmYWYlvBiXKIWM2acrU4PiKZACCQOvfMv/Tt mehF0+y2NYEpFLjFBXc9ra8cvAJGoLKB5g== X-Received: by 2002:a4a:c385:0:b0:598:9871:2800 with SMTP id u5-20020a4ac385000000b0059898712800mr400192oop.3.1704916275707; Wed, 10 Jan 2024 11:51:15 -0800 (PST) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 187-20020a4a0dc4000000b00595b35927a3sm938513oob.39.2024.01.10.11.51.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 11:51:15 -0800 (PST) From: David Lechner To: Mark Brown , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Frank Rowand Cc: David Lechner , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=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 Subject: [PATCH 07/13] iio: buffer: dmaengine: add INDIO_HW_BUFFER_TRIGGERED flag Date: Wed, 10 Jan 2024 13:49:48 -0600 Message-ID: <20240109-axi-spi-engine-series-3-v1-7-e42c6a986580@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240109-axi-spi-engine-series-3-v1-0-e42c6a986580@baylibre.com> References: <20240109-axi-spi-engine-series-3-v1-0-e42c6a986580@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit This adds the new INDIO_HW_BUFFER_TRIGGERED flag to the available modes of the dmaengine buffer. This allows it to be used as the buffer of devices that use the INDIO_HW_BUFFER_TRIGGERED flag. Signed-off-by: David Lechner --- drivers/iio/buffer/industrialio-buffer-dmaengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/buffer/industrialio-buffer-dmaengine.c b/drivers/iio/buffer/industrialio-buffer-dmaengine.c index 5f85ba38e6f6..c67ddf963bfb 100644 --- a/drivers/iio/buffer/industrialio-buffer-dmaengine.c +++ b/drivers/iio/buffer/industrialio-buffer-dmaengine.c @@ -120,7 +120,7 @@ static const struct iio_buffer_access_funcs iio_dmaengine_buffer_ops = { .data_available = iio_dma_buffer_data_available, .release = iio_dmaengine_buffer_release, - .modes = INDIO_BUFFER_HARDWARE, + .modes = INDIO_BUFFER_HARDWARE | INDIO_HW_BUFFER_TRIGGERED, .flags = INDIO_BUFFER_FLAG_FIXED_WATERMARK, }; -- 2.43.0