From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH 3/5] spi: sunxi: expose maximum transfer size limit Date: Wed, 1 Jun 2016 20:14:39 +0200 Message-ID: <20160601181439.GB4908@lukather> References: <5fffb7eca6f4b70853d92be2403595d6d06bede7.1464130597.git.hramrach@gmail.com> <20160530083745.GG4247@lukather> Reply-To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eN+VsUY52o/CFM+1" Cc: linux-sunxi , Mark Brown , Chen-Yu Tsai , linux-spi , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , Linux Kernel Mailing List To: Michal Suchanek Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , List-Id: linux-spi.vger.kernel.org --eN+VsUY52o/CFM+1 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline On Mon, May 30, 2016 at 10:57:10AM +0200, Michal Suchanek wrote: > Hello, > > On 30 May 2016 at 10:37, Maxime Ripard wrote: > > On Thu, May 26, 2016 at 07:25:24PM -0000, Michal Suchanek wrote: > >> The sun4i spi hardware can trasfer at most 63 bytes of data without DMA > >> support so report the limitation. Same on sun6i. > > > > Is it? Is there timeouts on the A31 and later SoCs? > > > > I have no sun6i hardware to test with. > > This is an advisory limit you can query and it better be smaller > rather than unreliable. The hard limit in the driver is still > SUN6I_FIFO_DEPTH (which is 128 bytes on sun6i). > > You can test his without any actual SPI device. Unused pins you can > multiplex as SPI suffice. Ok, for the time being: Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com --eN+VsUY52o/CFM+1--