Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1185523lqj; Mon, 3 Jun 2024 12:52:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDOvTdhKHf4l3XcLcEf0B2tLaTAwa1LKtl/cvbwqsX65Znhv7V4olcAF/rTRoH6r2AVAuwn/q+k2CCH02PdUUpzXxFRSDEfamgL7Hs4Q== X-Google-Smtp-Source: AGHT+IH1qL0KfpSuk6K3u8dzy+proWtg66BeX7vK3LUJLNGn+9pVOBes5bafUXFWvYTDnvOkTBtt X-Received: by 2002:a05:6358:5f1a:b0:192:b048:293f with SMTP id e5c5f4694b2df-19b48ad6305mr1251635455d.5.1717444340770; Mon, 03 Jun 2024 12:52:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717444340; cv=pass; d=google.com; s=arc-20160816; b=SecVblm978im64/un0gYKwHclnkfZgaSDk2wFKzlP8fDy+qWO2erBBJ6OR+41GhlNB ApjcYiD/vFxsvXKuEjzCA5nFf4IO1TO8Y9HkIDIsXVNr8mRPUMSx1fEPLeuWrjoqlNbI GE8e3XabQB/bixmuBgJ1yo6h6vUEeFscsutoQ5aPo6jprGCIwSV8RWjW55SyxhGryiKF UHIsEhEozGy8wKd8LvRmRHPAdaXDQoPXSFsXtx64a9eZS9SZBn6Dp1Cl6k3AnDgaepS7 6aEAmIGgAKIqno4uQTEBybos3feOSyUa5sgsTuT9U+Wl9uwg0mQfsLtDtHUjYxB1FXDF AaKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Yu9IN9031zvZ3dCYfJnmDgAvIhKPzedPq3GGCgQdLFg=; fh=YosDPj74VTuoTEu7BwIKeLukVkABfu6nsPfcX5O/xUA=; b=Os+yLABSs2S+40aoTXRIZwtvD3GRaz1rjRkjS6QDExqzY1Zme/fBKcFUR5IrMh88OI n/Vhc7WsIoJH7ecwYE3RTtsO7hLvDWKzAbtt3eDGHivtSCX+k4eDocmJyEeK2Z3qnEwD 6AXNXRjYyIYd3VwU5e5jEgRCeVjzK4tN5x3daVyzprPmzdo5PGaiR/ns4HQaYhw6Fcr4 lRPE3Rghivrawa8rFvND9C73rBvHKKbxFoNJD/+NcMeHkhaIzwLJKUTDohoSPR4q9ueC 4hivjr9Uy2QgLDaQZ/eURiYdT7GEqeZnb9FbMX/WACrE7GedrtSHVHZelS1jwXR8iR8O q5MA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=yKeDYqzn; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-199659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35b40bdb3si107334a12.519.2024.06.03.12.52.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 12:52:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=yKeDYqzn; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-199659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 B2BD828A434 for ; Mon, 3 Jun 2024 19:49:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C6CA13A884; Mon, 3 Jun 2024 19:49:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="yKeDYqzn" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D21020ED; Mon, 3 Jun 2024 19:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717444151; cv=none; b=At1lxF4rDyu541txfux6P/C1aBYnH43r5+v/9TbouAi5aFL/b5+P3zupr2lYWtr2W3UzthY60RXwO9l31dewLfCvOli6I4N3sVb/T4rVtgQnvpxtX7R0MFzT/TB7pi99ZQ9ccnB2O762NQsdD5m168SukPZpvb7fkubOPBSE2r4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717444151; c=relaxed/simple; bh=u+LtdUKeIquPtM3Gzq7t7e3fZ4iyQFikAJZQBux6nk0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NNTZVYd3ItNgcPTAKQr7zS79pzrDqe+mZ+em6DaaTYj2DW73OfYWux7JJ+gB8jjrLgzGJlTyamAGmftNy+0M2EfKTpWu1NjtYC/WsxDieZA+Tj1PEaoOjPSs+06kwhbw5FGNC/HicITayqhJhR/oQb+XLmT5wNdv4nffBN2iSvI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=yKeDYqzn; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717444148; bh=u+LtdUKeIquPtM3Gzq7t7e3fZ4iyQFikAJZQBux6nk0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yKeDYqznxvMlnDjCxJ5nvSbpUHVOSiOzhSxfdZodzshS1XyCtvr2/mNnzmOl2VTqJ s6bdjQYz6QiDp0PlUQ8zhJSN3+pc2X4U4vX1XzNTSacxJhxxAQ1eP+muwLboz/uqdG mDdQDJLLiklJcdt2zmhtEAUTfzuxOwaDy77O7J6HgGQ109k6lAUBbX+f5ztj/0S/MS HOHaWHihp2yZU+3riG0wuSzPi1z4s4LzEuw83cEC+j4H75LOsuVS8/h8T0edyAokC8 gCtlROFmbMUfE0fTeML5G3DptKY6VQKZbcn61iWuFvwnqqCy9DxwS22gPTku4IKPB8 KJiWYYzJDB0Hw== Received: from notapiano (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 2FA1E3782192; Mon, 3 Jun 2024 19:49:06 +0000 (UTC) Date: Mon, 3 Jun 2024 15:49:04 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Andy Shevchenko Cc: Mark Brown , Yang Yingliang , Christophe JAILLET , Thangaraj Samynathan , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Serge Semin , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Neil Armstrong Subject: Re: [PATCH v1 0/8] spi: Rework DMA mapped flag Message-ID: References: <20240531194723.1761567-1-andriy.shevchenko@linux.intel.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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240531194723.1761567-1-andriy.shevchenko@linux.intel.com> On Fri, May 31, 2024 at 10:42:32PM +0300, Andy Shevchenko wrote: > The first part of the series (patches 1 to 7) is an introduction > of a new helper followed by the user conversion. > > This consolidates the same code and also makes patch 8 (last one) > be localised to the SPI core part. > > The last patch is the main rework to get rid of a recently introduced > hack with a dummy SG list and move to the transfer-based DMA mapped > flag. > > That said, the patches 1 to 7 may be applied right away since they > have no functional change intended, while the last one needs more > testing and reviewing. > > Andy Shevchenko (8): > spi: Introduce internal spi_xfer_is_dma_mapped() helper > spi: dw: Use new spi_xfer_is_dma_mapped() helper > spi: ingenic: Use new spi_xfer_is_dma_mapped() helper > spi: omap2-mcspi: Use new spi_xfer_is_dma_mapped() helper > spi: pxa2xx: Use new spi_xfer_is_dma_mapped() helper > spi: pci1xxxx: Use new spi_xfer_is_dma_mapped() helper > spi: qup: Use new spi_xfer_is_dma_mapped() helper > spi: Rework per message DMA mapped flag to be per transfer Tested on next-20240603. No issue noticed on sc7180-trogdor-kingoftown and sc7180-trogdor-lazor-limozeen. So, Tested-by: N?colas F. R. A. Prado Although patch 5 (pxa2xx) didn't apply, so I skipped it (but it's not used on my platforms). Thanks, N?colas