From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (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 6647284D02 for ; Sun, 24 Nov 2024 17:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732470892; cv=none; b=inDTb6obXxCrlM73Qpe9f7bpZoBi4BB5LuE2Y/OT+YXzxNUezhi9tgBfacpu7qJ06Zg3AvEJskm/+w+PZlQnTb5CVtGXVIvStTpAKJrIyKSEKSPfSX7fEtFFKYE1YVoVGJihOVDg4VEye1vPVJnI3yBwBT2obszuphYlo/iQb74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732470892; c=relaxed/simple; bh=u3TXWFhwKMVr5dHjq1xqF/dSM8YPn22wGRYArR6i6YU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=h9PQzvYoaGaL1GOkZQQRdXmeSsc4PgDpg6rRLfGNTrU5b+Q1esnFU2g+prsQsoUKyLRRf7qeajoo39Cy66xybwMaFQhIkb+pAIMcasq10hTElNX9rBAm7xfP0VPjPhQ1BBL0VpLlSeW1WYDJZ7hwxh0djqcGJzuorWNpXkto6q0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=HpgDD2Sf; arc=none smtp.client-ip=209.85.210.53 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 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="HpgDD2Sf" Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-71d4adc3f20so142663a34.0 for ; Sun, 24 Nov 2024 09:54:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1732470887; x=1733075687; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u+1MYIiNsXukLktsJ3kzDAhdVZdxNNP2S76ANupTqis=; b=HpgDD2SfafYcZmaoSbV+jQQtGNFvr/AggpPH16v9GunZ7xsiflZeDDvkPzSbvMnlhk 9P30UVbtwqi4PNo0NwYjXqwMRVnHmXbSRGBQVm5Tm0Yl+5whLn1EB73Pby9uTpHyo35d 388d6ORZY9vFZaISAqTw2B2zNYF+cniKM8D/Ku/xEga5WplrT+M9m62IvqO7OVePa3s2 l9WjaLGt9sLRrnbCU8t9PpdqOdd5cjM/CLYm+56xAJA9bd27WcJFJjfwy/71arCu86zs K9lEIGeXe0wgQlyqtPH7CWnMkLzf687NJ+fGyqk+3PGsqw3i46zpaaO4mwtfLrQotq4W YVcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732470887; x=1733075687; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u+1MYIiNsXukLktsJ3kzDAhdVZdxNNP2S76ANupTqis=; b=Y0rUNArJZqDXhQ34cdbYNSxY+BG61Hz3JhU48I0OYwnZEcOWer6P6zUdXqA7hVTiPr 6zpfqNg+gy4Z0EMZNza2PQO3bEQler3f2HjGxatCCST1g756YZ3uJHo9+OUQRAN0b0DA hUqw1e6n6TTwtJHEA3uXLrfiI3i2IcphRl0oG+pf7rsGWV6fhhj9ZNHRJa/PwXMgd0PA XfuPryLwgd14TJaogeoddKlJSBNYX72UDwu9uRueBwtxVYDK9pr2sjQs5Twewux/BwMa IJQyUaFg0VN7NHCfMHxZGZVCtZMQdmANxWSa6DJAdQSuXD2cZdGVNrBfHE3FAXdm+ZfT z+NQ== X-Forwarded-Encrypted: i=1; AJvYcCWwAo+4oyA/f2QjAhNDQ35b0AGmYIh6IlxWcynYay5ZY7ZNXJw6fY6BBEg2rHdjwARht4RksiCPFJk=@vger.kernel.org X-Gm-Message-State: AOJu0YwgLG05XDMYBn+QUFe7E67IylpunciJfp1bKNqH54R8ZJB9qhVF K3UW77mv2yXHbnzp5iGJhxRRgClDuv3SkAfZp+xadAQNg7Vocym4PmjkgahgkAk= X-Gm-Gg: ASbGncszJ5F3xe6sGWBfUJ8mADlOGg4I/J9AFzffnwc8VT3Xy+Etf2PWykir1/WvGZc NGP/BnnTpvcVthCV0pefJwInET1tbxW/WLwVUTth5pxm1bD97C1RHcrFkE4g1/MwEMmsjgjaPtu pw2pPGtF7Uuf+VSDsdU32k4qOJG8MdaGriCdedSNkXLBpoQI3gXI9GlrKCc7nDAZWxnL9UUKh0s yMckvR3mNPBUXCkguzIawRWrI+dYWnqdlMPbP+YgkvaF1+h52mqfwVMd2EePIoMYOsVM+WiyhCS xj86mLIFtBE= X-Google-Smtp-Source: AGHT+IG6boTMutiUiwpuHLxoB0K1Rz8NUqxPXZVoKB/0sbovewZAthRnt7xuqhCwvRGdFVJCtYsmnw== X-Received: by 2002:a05:6830:6e0a:b0:718:9ad9:3082 with SMTP id 46e09a7af769-71c03b23ef7mr6267942a34.5.1732470887376; Sun, 24 Nov 2024 09:54:47 -0800 (PST) Received: from [192.168.0.142] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-71c0378fb78sm1708276a34.39.2024.11.24.09.54.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 24 Nov 2024 09:54:46 -0800 (PST) Message-ID: <259515cc-ca36-4dcd-b884-a9f9e3c2ab2e@baylibre.com> Date: Sun, 24 Nov 2024 11:54:44 -0600 Precedence: bulk X-Mailing-List: linux-pwm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 06/16] spi: add offload TX/RX streaming APIs To: Jonathan Cameron Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?Q?Nuno_S=C3=A1?= , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Michael Hennerich , Lars-Peter Clausen , David Jander , Martin Sperl , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-pwm@vger.kernel.org References: <20241115-dlech-mainline-spi-engine-offload-2-v5-0-bea815bd5ea5@baylibre.com> <20241115-dlech-mainline-spi-engine-offload-2-v5-6-bea815bd5ea5@baylibre.com> <20241124165039.206dc994@jic23-huawei> Content-Language: en-US From: David Lechner In-Reply-To: <20241124165039.206dc994@jic23-huawei> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/24/24 10:50 AM, Jonathan Cameron wrote: > On Fri, 15 Nov 2024 14:18:45 -0600 > David Lechner wrote: > >> Most configuration of SPI offloads is handled opaquely using the offload >> pointer that is passed to the various offload functions. However, there >> are some offload features that need to be controlled on a per transfer >> basis. >> >> This patch adds a flag field to struct spi_transfer to allow specifying >> such features. The first feature to be added is the ability to stream >> data to/from a hardware sink/source rather than using a tx or rx buffer. >> Additional flags can be added in the future as needed. >> >> A flags field is also added to the offload struct for providers to >> indicate which flags are supported. This allows for generic checking of >> offload capabilities during __spi_validate() so that each offload >> provider doesn't have to implement their own validation. >> >> As a first users of this streaming capability, getter functions are >> added to get a DMA channel that is directly connected to the offload. >> Peripheral drivers will use this to get a DMA channel and configure it >> to suit their needs. >> >> Signed-off-by: David Lechner > Some docs that need updating. Otherwise I wonder if we should delay > the _tx variants until there is a driver using them. > > I'm sure you have one on the way and there is an argument that it makes > sense to review rx and tx together, but still good to only add code > when it's used. > > Jonathan > In v1 Mark commented that he expected TX along with RX. And we do have a DAC driver we can probably add to the series in the next revision that uses it.