Re: [PATCH v4] spi/bcm63xx-hspi: Enable the clock before calling clk_get_rate().

2018-04-25 Thread Mark Brown
On Wed, Apr 25, 2018 at 06:49:06PM +0200, Stefan Potyra wrote: > Additionally, prepare/enable the pll_clk before calling clk_get_rate() > for the same reason. I don't see this change in the code: > struct clk *pll_clk = devm_clk_get(dev, "pll"); > > - if (IS_ERR(pll_c

[PATCH v4] spi/bcm63xx-hspi: Enable the clock before calling clk_get_rate().

2018-04-25 Thread Stefan Potyra
Enable the clock prior to calling clk_get_rate(), because clk_get_rate() should only be called if the clock is enabled. Additionally, prepare/enable the pll_clk before calling clk_get_rate() for the same reason. Found by Linux Driver Verification project (linuxtesting.org). Fixes: 142168eba9dc (