projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbfe9a2
)
spi: synquacer: Add missing clk_disable_unprepare()
author
Guo Mengqi
<guomengqi3@huawei.com>
Fri, 24 Jun 2022 00:56:14 +0000
(08:56 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:03 +0000
(14:23 +0200)
[ Upstream commit
917e43de2a56d9b82576f1cc94748261f1988458
]
Add missing clk_disable_unprepare() in synquacer_spi_resume().
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Guo Mengqi <guomengqi3@huawei.com>
Link:
https://lore.kernel.org/r/20220624005614.49434-1-guomengqi3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-synquacer.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-synquacer.c
b/drivers/spi/spi-synquacer.c
index
ea706d9
..
47cbe73
100644
(file)
--- a/
drivers/spi/spi-synquacer.c
+++ b/
drivers/spi/spi-synquacer.c
@@
-783,6
+783,7
@@
static int __maybe_unused synquacer_spi_resume(struct device *dev)
ret = synquacer_spi_enable(master);
if (ret) {
+ clk_disable_unprepare(sspi->clk);
dev_err(dev, "failed to enable spi (%d)\n", ret);
return ret;
}