Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Unverified Commit 0d7412ed authored by Stefan Potyra's avatar Stefan Potyra Committed by Mark Brown
Browse files

spi/bcm63xx-hspi: Enable the clock before calling clk_get_rate().



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: 142168eb ("spi: bcm63xx-hsspi: add bcm63xx HSSPI driver")
Signed-off-by: default avatarStefan Potyra <Stefan.Potyra@elektrobit.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b6a4b391
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment