Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2926793pxb; Fri, 12 Feb 2021 05:14:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuhHUoFnB7bocOjbeuXRQHD+pa2XDo54esaug5kBQNwhQ2JuCHcSSY9vUGqKGVzfxULY2U X-Received: by 2002:a17:907:7781:: with SMTP id ky1mr2883310ejc.255.1613135680811; Fri, 12 Feb 2021 05:14:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613135680; cv=none; d=google.com; s=arc-20160816; b=A9Ho8PPKh6fD289LBhMPKLY8zyQX6utIiSSiFHVL4TayLqGooukkzo+VTakrjH13iR x4mx17SUx0DvUFTatwN2USFND5/Hnt1vJEXWu8MSybrXXaHH4+4lq8JJexzOTrEb0see oq+9eZIy6ms+BwPrnQ/XZeVZ1ZfRGOtjMdwnB3s/GwFU+dmiFWwSzegdXShR7MCTF/X7 yPWRVPEL4wYdTlvEzpIMfDX/EysbmVouJHfPvEptIXnSRtCq8cvmV07TequpxXO+/iYn 4uJb41xlTd5J8oR9JDo/CmeCdbGni3WYrd4fueI6sZ8ijnd+Gdkm2NzZdrnsHF/1P2R4 aYHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=x7mv5E8XfvtMqS2FNo06LdQvREC5aPJ8gAnQhhMdyus=; b=istNJLBf1M2I7tPDXhwHOVsig8nJX6eKUj95apeSPpVaU2KvDHeIzKwukwgy+vn+Bu hr02fQkPvfR7A87X+6rpgdyVZQT2hunnK60nUMD/L47S/QVspAo6ySSDe06NzQwUw7Df 5dqLrYPveoiSk0R419AafsDthip/sc8yJKwKN9MCrEelzfsBAIB/fqgwnv9wuADH5eIr 2fxU3toWVHfajgjAh2ZqIruHJpUsrLId+pk68tmOYK8uPfFL8KjR3/njT1T524P1KGKN kUJ1mTovI8DsPVzeLspoLfhzpoIcq4Y/BnY8xV0J/s0CW9O3O6K8dzQI1JLjg1M8CWHM deNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SVChrVb7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si6998624edy.306.2021.02.12.05.14.17; Fri, 12 Feb 2021 05:14:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SVChrVb7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbhBLNNr (ORCPT + 99 others); Fri, 12 Feb 2021 08:13:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:60628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230301AbhBLNHF (ORCPT ); Fri, 12 Feb 2021 08:07:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F91564DE3; Fri, 12 Feb 2021 13:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613135184; bh=AYZMbP/+Y3TVvujKHed+NO3CyK+JSIz9Z897iZIkEW0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SVChrVb7uaiO2jD7c60rZ37JnTxmD/GPhMT0KRS4WjzL/PwH7KeLnMoKIvT5xZyCD 5XsrV24Noc2y8PaaBLuNg6IPeMahr9U5SNi0Qro79sR6CaRv/uucbReUp2V+feyqfE FzXqzhbQglaL6yQHMYvSFy/DuPwMiBRRxybv6nLuFcNKZl5LcWKhIr1AIh8ZtBbnnS zpr1m6zDwlSaa5ie9DgOg5k7wlvxWf/FTpWI6JLSlbIUtMqneCZ/8B5loaVFUn/SEr 5YYFrsRnQHXoEB8T7xFMBAeFFHP38UigGqrzjxYfjCBdZSdMUBdmtXX5D4QeGOiVAb jDnJnDF3NcxUw== Date: Fri, 12 Feb 2021 13:05:30 +0000 From: Mark Brown To: Geert Uytterhoeven Cc: Nicolas Saenz Julienne , Robin Murphy , Phil Elwell , linux-spi , Linux Kernel Mailing List Subject: Re: [PATCH] spi: Skip zero-length transfers in spi_transfer_one_message() Message-ID: <20210212130530.GE6057@sirena.org.uk> References: <20210211180820.25757-1-nsaenzjulienne@suse.de> <20210212123118.GB6057@sirena.org.uk> <20210212125221.GD6057@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="brEuL7wsLY8+TuWz" Content-Disposition: inline In-Reply-To: X-Cookie: One size fits all. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --brEuL7wsLY8+TuWz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 12, 2021 at 01:57:24PM +0100, Geert Uytterhoeven wrote: > On Fri, Feb 12, 2021 at 1:55 PM Mark Brown wrote: > > No, I think it's fine - there's probably some sensible use case with > > drivers reusing a statically allocated transfer/buffer set for multiple > > operations and just tweaking the length as needed which seems a bit > > weird but I can't think of a reason not to allow it. Your patch is > > currently queued, all being well it'll get tested & pushed out later > > today. > Aren't the zero-length transfers also used to do tricks with the CS signal, > e.g. combined with cs_change? The issue wasn't that things were using zero length transfers, the issue was that drivers were doing zero length transfers but also passing data buffers which isn't an obvious thing to do given that there will be no data in those buffers. --brEuL7wsLY8+TuWz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmAmfRkACgkQJNaLcl1U h9CTbQf+M0AJe+8RIbyBkQmucMxzMYl1M7W5COpyanLLe/qcEZNQ0yWzuJ13HMCr 9PcrQk+R63wg3Se0VUPAvx083lIbePEcCs2CkzoT+h2Y08zBxT3QBHNYNBq0MZ3D QqQP9G3BX3xqaFduWeJ/7ZZq5l4dDAC1u9P/7ZJajupQcnKe7H2MoPe01qgKvjS8 T/i5dJaUS2LPhsHxieI5wNBCtvtbJ6ziCyXoc5/QDW5p4GXj9SfUF2jnA0wZEJ93 uq5Qhyf07f7/FAcBfbODsStxhoR9t6PJ3v1ZsJ+bwUoPXKMEre2+Vmbx25q6+MWA J5MBE8qyVAtSNs4leGb06uNWAwIQ9g== =14UE -----END PGP SIGNATURE----- --brEuL7wsLY8+TuWz--