From: Mark Brown Subject: Re: [PATCH] spi: sun4i: allow transfers to set transmission speed Date: Sun, 8 Nov 2015 09:35:15 +0000 Message-ID: <20151108093515.GB6746@sirena.org.uk> References: <1446936065-15868-1-git-send-email-mweseloh42@gmail.com> Reply-To: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WhfpMioaduB5tiZL" Cc: Maxime Ripard , linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To: Marcus Weseloh Return-path: Content-Disposition: inline In-Reply-To: <1446936065-15868-1-git-send-email-mweseloh42-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , List-Id: linux-spi.vger.kernel.org --WhfpMioaduB5tiZL Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline On Sat, Nov 07, 2015 at 11:41:05PM +0100, Marcus Weseloh wrote: > + /* Transfer speed setup with fallback to board max_speed_hz */ > + if (tfr->speed_hz > 0 && tfr->speed_hz <= spi->max_speed_hz) > + speed = tfr->speed_hz; > + else > + speed = spi->max_speed_hz; This is not needed, the core will always ensure that the transfer speed is set per on each transfer. --WhfpMioaduB5tiZL--