1 From d03f23df6ff47898d76f06b3aa5dadcfa1ec8f4f Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Sun, 19 Feb 2017 23:40:22 +0100
4 Subject: [PATCH 1/3] spi/bcm63xx-hsspi: allow providing clock rate through a
7 Instead of requiring the hsspi clock to have a rate, allow using a second
8 clock for providing the Hz rate, which is probably more correct anyway.
10 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
12 drivers/spi/spi-bcm63xx-hsspi.c | 12 ++++++++++--
13 1 file changed, 10 insertions(+), 2 deletions(-)
15 --- a/drivers/spi/spi-bcm63xx-hsspi.c
16 +++ b/drivers/spi/spi-bcm63xx-hsspi.c
17 @@ -351,8 +351,16 @@ static int bcm63xx_hsspi_probe(struct pl
20 rate = clk_get_rate(clk);
24 + struct clk *pll_clk = devm_clk_get(dev, "pll");
26 + if (IS_ERR(pll_clk))
27 + return PTR_ERR(pll_clk);
29 + rate = clk_get_rate(pll_clk);
34 ret = clk_prepare_enable(clk);