]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: cadence: cache reference clock rate during probe
authorMichael Hennerich <michael.hennerich@analog.com>
Thu, 14 Jan 2021 15:42:17 +0000 (17:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jan 2021 14:38:19 +0000 (15:38 +0100)
commit97174b1e6a5b0bf7439f0ac7a28aa0cc07e01235
treee13cce585b2c0806cb1b5227402555d61de5f1dc
parent310014f572a59b311c175321265a08c9adfced0c
spi: cadence: cache reference clock rate during probe

commit 4d163ad79b155c71bf30366dc38f8d2502f78844 upstream.

The issue is that using SPI from a callback under the CCF lock will
deadlock, since this code uses clk_get_rate().

Fixes: c474b38665463 ("spi: Add driver for Cadence SPI controller")
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20210114154217.51996-1-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-cadence.c