summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandy.hu <andy.hu@starfivetech.com>2024-06-21 12:20:09 +0300
committerandy.hu <andy.hu@starfivetech.com>2024-06-21 12:20:09 +0300
commitfc06d5568eece0a809106fb6b8a081e2967ef2b6 (patch)
treefd17153518fcc55d3264e9bb94e43818e2414611
parent46db20b9cd19b6d5b2f5fbe72f846fee0ce12953 (diff)
parente5b262e548db0a41a128da8ee6945ce04a1f1f2c (diff)
downloadlinux-fc06d5568eece0a809106fb6b8a081e2967ef2b6.tar.xz
Merge branch 'CR_11206_spi_6.6_hal.feng' into 'jh7110-6.6.y-devel'
CR_11206_spi_6.6_hal.feng See merge request sdk/linux!1060
-rw-r--r--drivers/spi/spi-pl022.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 1420c40fa815..1189b484b4f1 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -1803,6 +1803,10 @@ static int calculate_effective_freq(struct pl022 *pl022, int freq, struct
WARN(!best_freq, "pl022: Matching cpsdvsr and scr not found for %d Hz rate \n",
freq);
+ if (best_freq != freq)
+ dev_warn(&pl022->adev->dev,
+ "Requested frequency: %d Hz is unsupported,select by default %d Hz\n",
+ freq, best_freq);
clk_freq->cpsdvsr = (u8) (best_cpsdvsr & 0xFF);
clk_freq->scr = (u8) (best_scr & 0xFF);
dev_dbg(&pl022->adev->dev,