Re: [PATCH] spi: Correct SPI clock frequency setting in spi_mpc8xxx

2010-02-16 Thread Grant Likely
[cc'd spi-devel-general, linuxppc-dev Kumar Gala] On Tue, Feb 16, 2010 at 7:12 AM, Ernst Schwab esch...@online.de wrote: From: Ernst Schwab esch...@online.de Correct SPI clock frequency division factor rounding, preventing clock rates higher than the maximum specified clock frequency being

Re: [PATCH] spi: Correct SPI clock frequency setting in spi_mpc8xxx

2010-02-16 Thread Grant Likely
On Tue, Feb 16, 2010 at 9:43 AM, Ernst Schwab esch...@online.de wrote: Grant Likely grant.lik...@secretlab.ca wrote: The change forces the division to always round up instead of down. Please describe (for me now, and for people looking at the commit in the future) the mathematical reason for

Re: [PATCH] spi: Correct SPI clock frequency setting in spi_mpc8xxx

2010-02-16 Thread Ernst Schwab
Grant Likely grant.lik...@secretlab.ca wrote: The change forces the division to always round up instead of down. Please describe (for me now, and for people looking at the commit in the future) the mathematical reason for the changes. Ok, here are some infos on the problem I observed, and the