From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 2/6 Revised] SPI omap2_mcspi: Add max_clk_div field to mcspi platform config Date: Fri, 19 Mar 2010 13:38:22 -0700 Message-ID: <20100319203822.GX2900@atomide.com> References: <1268407307.14445.51.camel@quad> <20100312172148.GG2900@atomide.com> <1268587548.30878.11.camel@quad> <20100315163246.GT2900@atomide.com> <1268685022.8594.130.camel@quad> <20100315210236.GE2900@atomide.com> <1269027991.586.63.camel@quad> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: spi-devel-general@lists.sourceforge.net, David Brownell , Grant Likely , Andrew Morton , Roman Tereshonkov , linux-omap@vger.kernel.org, Aaro Koskinen , Kevin Hilman To: Scott Ellis Return-path: Content-Disposition: inline In-Reply-To: <1269027991.586.63.camel@quad> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org * Scott Ellis [100319 12:43]: > > Only 3430 and 3630 TRMs says 0xd, 0xe, 0xf = Division not supported. > > > I tested a 3503 with clock divider values of 0x0d, 0x0e and 0x0f. > It worked fine. > I collected data off the SPI bus successfully at the expected > frequencies of 5859 Hz, 2929 Hz and 1464 Hz. > > > But then again, the TRMs can have errors. > > > Looks like this is a case of that. OK, good thing you checked it :) > My patches #2 and #3 are unnecessary then and #4 makes use of a new > field added in #3. > > I can resubmit #4, "Use transfer speed_hz if provided". That was the > original problem I was working on. > > Should I leave the hard-coded 0x0f in the code or would you prefer a > named constant? Named constant in the long run, but a minimal fix is best for the -rc cycle. Regards, Tony