WSL2-Linux-Kernel/drivers/clk/sifive
Samuel Holland 6487966b48 clk: sifive: Do not register clkdevs for PRCI clocks
[ Upstream commit 2607133196c35f31892ee199ce7ffa717bea4ad1 ]

These clkdevs were unnecessary, because systems using this driver always
look up clocks using the devicetree. And as Russell King points out[1],
since the provided device name was truncated, lookups via clkdev would
never match.

Recently, commit 8d532528ff6a ("clkdev: report over-sized strings when
creating clkdev entries") caused clkdev registration to fail due to the
truncation, and this now prevents the driver from probing. Fix the
driver by removing the clkdev registration.

Link: https://lore.kernel.org/linux-clk/ZkfYqj+OcAxd9O2t@shell.armlinux.org.uk/ [1]
Fixes: 30b8e27e3b ("clk: sifive: add a driver for the SiFive FU540 PRCI IP block")
Fixes: 8d532528ff6a ("clkdev: report over-sized strings when creating clkdev entries")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Closes: https://lore.kernel.org/linux-clk/7eda7621-0dde-4153-89e4-172e4c095d01@roeck-us.net/
Suggested-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240528001432.1200403-1-samuel.holland@sifive.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 09:14:15 +02:00
..
Kconfig clk: sifive: Use reset-simple in prci driver for PCIe driver 2021-05-04 12:26:09 +01:00
Makefile clk: sifive: Add a driver for the SiFive FU740 PRCI IP block 2020-12-16 12:22:59 -08:00
fu540-prci.c clk: sifive: Add clock enable and disable ops 2020-12-16 12:23:13 -08:00
fu540-prci.h clk: sifive: fu540-prci: Declare static const variable 'prci_clk_fu540' where it's used 2021-02-11 11:56:06 -08:00
fu740-prci.c clk: sifive: Add pcie_aux clock in prci driver for PCIe driver 2021-05-04 12:26:09 +01:00
fu740-prci.h clk: sifive: Add pcie_aux clock in prci driver for PCIe driver 2021-05-04 12:26:09 +01:00
sifive-prci.c clk: sifive: Do not register clkdevs for PRCI clocks 2024-07-05 09:14:15 +02:00
sifive-prci.h clk: sifive: Use reset-simple in prci driver for PCIe driver 2021-05-04 12:26:09 +01:00