From 3beb61dbfcf188399cbc36ce1eeb8b2ba724de38 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Thu, 22 May 2014 20:07:35 +0200 Subject: [PATCH] spi: rspi: Round up division to avoid slave overclocking 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 30 MHz) was driven at 48.75 MHz. After this patch it's driven at a safe 24.375 MHz. Signed-off-by: Geert Uytterhoeven Signed-off-by: Mark Brown --- Reading git-format-patch failed