Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1276378rdd; Wed, 10 Jan 2024 14:31:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5JX5CePAJjPd8NcE2NLaSxWlQi48lge3PExlQrsu0rbwrO2ry9CqVf8KylRh9AzCJargN X-Received: by 2002:aa7:88c7:0:b0:6d9:be60:9b93 with SMTP id k7-20020aa788c7000000b006d9be609b93mr1155370pff.12.1704925913324; Wed, 10 Jan 2024 14:31:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704925913; cv=none; d=google.com; s=arc-20160816; b=gE2HWzfO/WwpSwZJmOTert/l5u2TyMw5v8fIzoxLM9XiQuxi5wU3gh8CDV9eJf++ee CnVbP0SRsWV7FhLBvMSptwTlqyF6dkE9vOc2YlkPWvUQkASBNI/uVv1bths1TF6jJBmi E9Eyu+6mWGFcm2gkGfJMy952mXogUKEJ0eo9fomFroV6CZHpMCVeIa+lxEvDNl9QeKCO iVCrKvOhj2aD2GP2xZ7Iu56thohKUzWVTQlfeyBVy3iunv8ZbrlFsbzPXZKW6uQ3aOr4 nzMOB/g8EUI3vftNxamo83OuPX1zYNLlYxe5r1rrQKLZEwZBD5jjjWFLvkh+wkozdD7+ qE+A== 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=AS+5B9ThhaWkAjgY4ZusJxzHDo4f/Ncehb81K13Thlw=; fh=RazPgrPDbt7Jl9otvDUSOcqXop0ERclr0NpfSr2cndg=; b=dxhwAIEfzgYcpWoLYbBojRTm64GHocjhI04eNjgJ/XTumuy+eKpQgwf9V0xKTQarDu hCGRzopaQ/xLdzetbPRZSlKT2qfyG64n4TOpeEPdZoL4cK8tknKkh0UbCnr2B6csi66/ GBGih+v6rEC5u5QhvYCJGnQ84Ok3DBFJlPr/LEd71WDVL/UmjnVJpy01iePAqRH+3r7R pc6hhUxRq+BD/mGFYBsxSzyZIWd/uu+KqfcSdGh9j+PWTAWPyLvrvqWYpEAx5Ie/y8+K 6ZnNoWrqrZPa1HxiljgXYHWhJI8QhRNw7HN2WtfR4AO8qrUORu4zoxzoFVNr+iWayxkS EjXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=RhtSbEQ2; spf=pass (google.com: domain of linux-kernel+bounces-22850-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22850-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n37-20020a056a000d6500b006dab36234c2si4422691pfv.186.2024.01.10.14.31.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 14:31:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22850-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=RhtSbEQ2; spf=pass (google.com: domain of linux-kernel+bounces-22850-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22850-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 38090B22A6A for ; Wed, 10 Jan 2024 22:31:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04D2D3FB3D; Wed, 10 Jan 2024 22:31:41 +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="RhtSbEQ2" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 529211EB37 for ; Wed, 10 Jan 2024 22:31:38 +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-f178.google.com with SMTP id 38308e7fff4ca-2cd46e7ae8fso51685501fa.1 for ; Wed, 10 Jan 2024 14:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1704925896; x=1705530696; 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=AS+5B9ThhaWkAjgY4ZusJxzHDo4f/Ncehb81K13Thlw=; b=RhtSbEQ2pDbAJjP8epFlqhplpGm4Mme0r5BX/edUmaS+ugJSn3OMPa/2F7ygoVEYvc ZKSohjK5rYgep1BJQ5o9qYVPVfSXeTIIGtI9hwnSDktPySJWl3rmxB8YaKsa0O8E0mFl vM2nAl982Qpwot/sHL/GlHihWBnjr2rzStZpBJi8BmKOsWjVF1nOufQ+Yh4/vUoCWGSa n0Mt74GrBNunIMrO5hMeP1LSNImux6lTQI0X1gP5PX7SYD5CaNsIWY7wCK5iotvU6lmV 5Lpa2CzewCQNBo7h9cG+CmHfD3V2E4w3aDBG/ofxaFrOxe7tLaqaDrNOr++1jrZWKflo g77w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704925896; x=1705530696; 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=AS+5B9ThhaWkAjgY4ZusJxzHDo4f/Ncehb81K13Thlw=; b=oLVE2njjEB/fNj8qHdqM4D+mV9B7DH318wKKqNRQiQVmCh4DW/AX8NTcdzf+yKvFUk l+GH5WGj359F0M0kSd8C6M6ifVNCUAF+ipTXEKgsvDtaum/efXA88LkMnHDqAcekiF4i DY9Roxmi4A2Q6odAMKQtJmwy7pF2oRojO8LmvG2a0Fqv3S679uf5YNW4VOm15Xj5dAm+ q4pBy2itsrJ83VLgrV+q0eCzuX4eHkNUKPibwYbiWn1SBfoU/VjUpB0foWG6GmPcYSjf yx94u5g/BUa8WPSWBoA46gjyb2aPTHjVYF2kY1Ukd3F70vLYny9IMBsNEuonwb+eOwKx 7Jwg== X-Gm-Message-State: AOJu0YyZQQq+01w9i7vCTfIlAihCHsoH5SybGc+qu3f6IwtS8yoo0ws/ G1305Cj4EE4s0hiZ3NySivoQ3w8HWk2GDmFuqar6yLCEDzqIbA== X-Received: by 2002:a2e:9290:0:b0:2cc:e9be:90c7 with SMTP id d16-20020a2e9290000000b002cce9be90c7mr64793ljh.179.1704925896373; Wed, 10 Jan 2024 14:31:36 -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-5-e42c6a986580@baylibre.com> In-Reply-To: From: David Lechner Date: Wed, 10 Jan 2024 16:31:25 -0600 Message-ID: Subject: Re: [PATCH 05/13] spi: axi-spi-engine: add SPI offload support To: Mark Brown Cc: 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, Lars-Peter Clausen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 10, 2024 at 3:39=E2=80=AFPM Mark Brown wro= te: > > On Wed, Jan 10, 2024 at 01:49:46PM -0600, David Lechner wrote: > > This adds an implementation of the SPI offload_ops to the AXI SPI Engin= e > > driver to provide offload support. > > > > Offload lookup is done by device property lookup. SPI Engine commands > > and tx data are recorded by writing to offload-specific FIFOs in the > > SPI Engine hardware. > > Glancing through here I'm not seeing anything here that handles DMA > mapping, given that the controller will clearly be doing DMA here that > seems surprising. In the use case implemented in this series, the RX data is going to DMA, but in general, that doesn't have to be the case. In theory, it could get piped directly to a DSP or something like that. So I left the RX DMA part out of the SPI controller and implemented as a separate device in "iio: offload: add new PWM triggered DMA buffer driver". The SPI controller itself isn't aware that it is connected to DMA (i.e. there are no registers that have to be poked to enable DMA or anything like that).