From: Andrew Morton Subject: Re: [patch 2.6.26-git] mpc52xx_psc_spi: fix block transfer Date: Sun, 27 Jul 2008 19:40:55 -0700 Message-ID: <20080727194055.7d3b839d.akpm@linux-foundation.org> References: <200807271522.05967.david-b@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Luotao Fu To: David Brownell Return-path: In-Reply-To: <200807271522.05967.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Sun, 27 Jul 2008 15:22:05 -0700 David Brownell wrote: > From: Luotao Fu > > The block transfer routine in the mpc52xx psc spi driver misinterpret the > datasheet. According to the processor datasheet the chipselect is held as > long as the EOF is not written. Theoretically block of any sizes can be > transferred in this way. The old routine however writes an EOF after every > word, which has the size of size_of_word. This makes the transfer slow. > Also fixed some duplicate code. > > Signed-off-by: Luotao Fu > Signed-off-by: David Brownell The patch applies to 2.6.25 and 2.6.26. Should we backport it? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/