[PATCH 4/4] spi: s3c64xx: restore removed comments
From: Krzysztof Kozlowski <hidden>
Date: 2016-07-08 12:52:55
Also in:
linux-samsung-soc, linux-spi, lkml
From: Krzysztof Kozlowski <hidden>
Date: 2016-07-08 12:52:55
Also in:
linux-samsung-soc, linux-spi, lkml
On 07/08/2016 02:18 PM, Andi Shyti wrote:
Patch a9e93e8 has erroneously removed some comments which are important to understand why the bus frequency is multiplied by two during the spi transfer. Signed-off-by: Andi Shyti <redacted> --- drivers/spi/spi-s3c64xx.c | 2 ++ 1 file changed, 2 insertions(+)diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 1874bc5..d1fe100 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c@@ -639,6 +639,8 @@ static void s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd) writel(val, regs + S3C64XX_SPI_MODE_CFG); if (sdd->port_conf->clk_from_cmu) { + /* Configure Clock */ + /* There is half-multiplier before the SPI */
Not a kernel coding style comment. :) Either proper one or just skip the "configure clock" as it is meaningless. BR, Krzysztof
clk_set_rate(sdd->src_clk, sdd->cur_speed * 2);
} else {
/* Configure Clock */