From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mlbe2k1.cs.myharris.net ([137.237.90.88]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1MJV7l-0003hO-Ur for linux-mtd@lists.infradead.org; Wed, 24 Jun 2009 16:15:08 +0000 Message-ID: <4A425102.8050507@harris.com> Date: Wed, 24 Jun 2009 12:14:58 -0400 From: "Steven A. Falco" MIME-Version: 1.0 To: David Brownell Subject: Re: [Question] m25p80 driver versus spi clock rate References: <4A3FEE98.60700@harris.com> <200906231538.40125.david-b@pacbell.net> <4A423750.8080605@harris.com> <200906240813.01220.david-b@pacbell.net> In-Reply-To: <200906240813.01220.david-b@pacbell.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "linuxppc-dev@ozlabs.org" , Stefan Roese , linux-mtd@lists.infradead.org, Mike Frysinger List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , David Brownell wrote: > On Wednesday 24 June 2009, Steven A. Falco wrote: >> Your changes to bitbang_work look good. > > You tested? > Yes - I built a kernel with your patch, combined with the changes I just posted to linuxppc-dev@ozlabs.org as: "[PATCH v1] Make spi_ppc4xx.c tolerate 0 bits-per-word and 0 speed_hz" I was successful in operating both the m25p16 at 16 MHz and the AVR at 240 KHz, as verified by oscilloscope. So my "ack" includes testing. > >> I'm not clear on why you first set do_setup = -1 but later >> use do_setup = 1. Perhaps they should both be "1". Other than that, >> >> Acked-by: Steven A. Falco > > The "-1" is for the init path, "1" for per-transfer overrides; > this way it avoids some extra calls to set up the bits/speed. Got it. No further comments. My "ack" stands. I'll start looking at a revised version of the spi_ppc4xx.c driver, integrating your comments. Steve