Re: [PATCH] spi: rspi: Round up division to avoid slave overclocking

2014-05-26 Thread Mark Brown
On Thu, May 22, 2014 at 08:07:35PM +0200, Geert Uytterhoeven wrote: > The calculation of the bit rate divider used a standard C division, which > rounds down the quotient. This may lead to a higher bitrate than requested. > Round up to avoid this. Applied, thanks. signature.asc Description: Digi

Re: [PATCH] spi: rspi: Round up division to avoid slave overclocking

2014-05-25 Thread Simon Horman
On Thu, May 22, 2014 at 08:07:35PM +0200, Geert Uytterhoeven wrote: > The calculation of the bit rate divider used a standard C division, which > rounds down the quotient. This may lead to a higher bitrate than requested. > Round up to avoid this. > > E.g. on Koelsch, the SPI flash (configured for