From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 2/2] spi: mediatek: add cs timing configuration support Date: Tue, 19 Nov 2019 18:19:30 +0000 Message-ID: <20191119181930.GF3634@sirena.org.uk> References: <1574053037-26721-1-git-send-email-luhua.xu@mediatek.com> <1574053037-26721-3-git-send-email-luhua.xu@mediatek.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XIiC+We3v3zHqZ6Z" Cc: Matthias Brugger , Allison Randal , Enrico Weigelt , Kate Stewart , Leilk Liu , Thomas Gleixner , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org To: Luhua Xu Return-path: Content-Disposition: inline In-Reply-To: <1574053037-26721-3-git-send-email-luhua.xu@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org --XIiC+We3v3zHqZ6Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 18, 2019 at 12:57:17PM +0800, Luhua Xu wrote: > Add configure SPI CS setup/hold/idle delays in terms > of clk count support, and use one period of current > spi speed as default if setup/hold/idle not indicated. We have added a generic way to specify delays like this via the set_cs_timing() operation and related fields in the spi_device struct which operate in terms of spi_delay - Alexandru Ardelean added them recently. This supports both times and clock cycles as units so should fit with what your hardware can do, the interface is new though so there may be soem rough edges to worry about. --XIiC+We3v3zHqZ6Z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl3UMjEACgkQJNaLcl1U h9DuYQf/Sh6DLOmgyjnIubrb27dh7rENm3ubM+wQws2RYtpLpn81Y+QeCeuFmG+5 qab+os+aGjg82VyLmLMU07NqDkCLfu4JVFUudK3M5ZLCZcQQ0VPhQ2CUSya+gSkr cDrncou8L/Q7E1HlRwY+b3/S1qLxrMGYA5JkaivmCTC/RRhtUDb+6JORzIpVER15 XrgH6cJM79jkEfUWoz5AQITORtrebZnKDsYDxWzbcjLE0SleAK8AJ55zPf1QNzMz qX3dpdyEDPfMWEiCitAOHRNzwpVdBKwOCN5vXJdbPXRJN7DhkDwWigDSaz+9uL0m f8lMvtoliW5cyEX0Q/O+WEvR9vdvjA== =vdlB -----END PGP SIGNATURE----- --XIiC+We3v3zHqZ6Z--