From: David Brownell Subject: Re: [patch 2.6.26-git] mpc52xx_psc_spi: fix block transfer Date: Sun, 27 Jul 2008 21:12:29 -0700 Message-ID: <200807272112.29924.david-b@pacbell.net> References: <200807271522.05967.david-b@pacbell.net> <20080727194055.7d3b839d.akpm@linux-foundation.org> 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: Andrew Morton Return-path: In-Reply-To: <20080727194055.7d3b839d.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org> Content-Disposition: inline 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 Sunday 27 July 2008, Andrew Morton wrote: > 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? Sounds like someone already did the backport! The issue would be whether it should be merged to 2.6.26-stable? Getting the chipselect wrong like this is a fairly big deal; the protocol is wacked, many chips won't know what to do with lots of individual words, or will do the wrong thing. I'd vote for making this widely available. - Dave ------------------------------------------------------------------------- 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=/