Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4860740imu; Tue, 29 Jan 2019 08:42:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN6vW98KkVDFDIUCGUEcMaGdYc3flVF0VOozW3NLcixgW9jwXiRvXnZYTM2to6rp19tHoHv0 X-Received: by 2002:a63:dc54:: with SMTP id f20mr24486968pgj.410.1548780151191; Tue, 29 Jan 2019 08:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548780151; cv=none; d=google.com; s=arc-20160816; b=GgSYPSFpeC5pbjgniIeht+XjNnHi5sA3uZwCvNTu0XDD/nQH5d6pAG7VUtOpTjeXK3 WMWwBm97wAsEtdmoAretpOY1/WiwNm100dNUaLBkJwmBZpQEYCEpyVYH2+tgySj6mf4o 5Id/7YIMlY9urHf88SZiqfjPoCfb8qO/JQLaBRe/yShwH1Zj3ksGAyXkMTVEINV4BQdw aeJU+Ooz/+WH/Twdw1Y46FuhJopuUF/rTg8zfZ6cBYlfHAh4qFnGbwJ6pyG9w5MXdL/D m6u2qvUs/jCRqbHdf/80TGAUIJ6W21sf32RWzBut7KavgQKOHyDouKVVABC6q+mHujTJ q2Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=szjOlRlI7uBF/W5HaG9wUCokli/J7uBg1nefJhg9Kjs=; b=kGTQ0Cl5lhthmhmacd3bF8K5gkGB/+XwJnz5NahLWaMEYh3xpV0HXNccZgRGsgbei5 EoNY0GHa1sYNduZiofXsk/pYp7UZKuzaSPN0Cjvrw1jvAa7YCquTBC+3n7FLDzIDkIVh 7E3V9WfcNuBGOKJV+YkSYm+l/DAGFAxHxu8jQo32C+p2NezgCLTBbfR8Y+5Ggi3oFZjV 37ys1yZNZdsDUytLEK5B/Ic29MBlmd8tgrWOzliHzgwriXGRqWGRTha9RG9DpmEzFUuZ 0+KR1I36ZPkePhqoFmY/dMlm8tXiSQX2uUGri2HWUjlWL7wY1VUx7rNenDhKWhXaVAly 0MvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=uHBlZn7W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10si39157402pls.162.2019.01.29.08.42.14; Tue, 29 Jan 2019 08:42:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=uHBlZn7W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbfA2Ql7 (ORCPT + 99 others); Tue, 29 Jan 2019 11:41:59 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:49252 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726374AbfA2Ql6 (ORCPT ); Tue, 29 Jan 2019 11:41:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=szjOlRlI7uBF/W5HaG9wUCokli/J7uBg1nefJhg9Kjs=; b=uHBlZn7WjNZF8Ww9wughdpM+q uXzkAQw0IgZHqob8ryXj6wxRRdN9ZrTFh3t6naWE0x8OTlxvuu4HADGSaO/LvAUG04w09a50csJyM 1jNpp85n6Wm7jO+Bdh4QD95sWNSuc15/FRE0qZwz6MIg+o5WKqjFsaHcupoBIGa87nbuU=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1goWSG-0000Zd-8d; Tue, 29 Jan 2019 16:41:44 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 9847F1127D50; Tue, 29 Jan 2019 16:41:43 +0000 (GMT) Date: Tue, 29 Jan 2019 16:41:43 +0000 From: Mark Brown To: Geert Uytterhoeven Cc: Jonas Bonn , Baolin Wang , LKML , linux-spi , Rob Herring , Mark Rutland , Lanqing Liu Subject: Re: [PATCH v3 1/2] spi: support inter-word delay requirement for devices Message-ID: <20190129164143.GF10524@sirena.org.uk> References: <20190126163220.26421-1-jonas@norrbonn.se> <20190126163220.26421-2-jonas@norrbonn.se> <20190128181038.GF11699@sirena.org.uk> <1b9807aa-3e6e-16f2-a2c2-ebe5e186d904@norrbonn.se> <28617b72-fbc0-4274-d9d1-34c37f03f867@norrbonn.se> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/QKKmeG/X/bPShih" Content-Disposition: inline In-Reply-To: X-Cookie: What foods these morsels be! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/QKKmeG/X/bPShih Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 29, 2019 at 11:07:50AM +0100, Geert Uytterhoeven wrote: > On Tue, Jan 29, 2019 at 10:50 AM Jonas Bonn wrote: > > OK. So the user (perhaps in userspace using spidev) has to know the > > rate of the IO clock that the SPI controller sits behind and then has to > > match this to the required delay of the slave device... Doesn't sound > > very portable. I think if we're doing translation we should just do it in the core and either say that clients should only set one or the other or pick what looks like the higher value. > I can see the value of having both: > On some slaves, the delay may depend on a fixed internal or > external clock[1] on the SPI slave, so it should be specified in time units. > Some slaves may be clocked by the SPI clock[2], so the delay should be > specified in SPI clock cycles. Yes, they're definitely both useful. --/QKKmeG/X/bPShih Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlxQgkYACgkQJNaLcl1U h9BpcQf/ccdkXJ6vmh0isqva90NnEMmC8ctfpWCZ1lh5senmjaIQrllQrXgfsAkm 9V/XOGrByMBLbS1U5dBaA3CPcWuZjtph1axjDkhJy2GG5e+gDZNIFq4sTQvSmTCS nb8DQgRtHbz/RGFuaW7frG9gCDbQb9T7FSvuLaGFrPABiUJKLKGkRgm3tpxrXXPd Bo3UGsJgPiO9mjI7IZO60aXSgS46rsE+hnfiJ1v3fc/8ySa6w5zsU6bJh2g8hGj1 ti6kAIrk3dicYPzhSkfgwdNFeJ/din8SBITm04xLbUA4GAFxyWCnohbRDZdZPHHb LBkls9P3mXpe3gV/9oxc5YGkE0kBzg== =vhvC -----END PGP SIGNATURE----- --/QKKmeG/X/bPShih--