drivers/clk/ti/adpll.c | 4 ++-- drivers/clk/ti/divider.c | 2 +- drivers/clk/ti/mux.c | 2 +- drivers/clk/visconti/clkc.c | 2 +- drivers/hwmon/ltc4282.c | 2 +- drivers/iio/frequency/adf4377.c | 2 +- drivers/spi/spi-amlogic-spisg.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-)
Hi all,
The clk_init_data structure contains three mutually-exclusive members
for different methods to specify the possible parents of a clock,
prompting drivers to initialize only the members they need. When commit
fc0c209c147f35ed ("clk: Allow parents to be specified without string
names") added the last two methods, this was done in a
backwards-compatible way, using a priority-based scheme:
- .name, .ops, .num_parents, and .flags must always be initialized,
- if .num_parents is non-zero, .parent_names must be initialized,
- if .parent_names is NULL, .parent_data must be initialized,
- if .parent_data is NULL, .parent_hws must be initialized
and valid.
However, not initializing all members may cause subtle issues, which are
only exposed when CONFIG_INIT_STACK_ALL_PATTERN or
CONFIG_INIT_STACK_NONE is enabled.
Hence this series makes sure all members are fully initialized, to fix
such bugs, and to avoid future breakage when converting drivers to a
different method for specifying the parents.
This (small) series is part 1, and fixes all cases that I identified to
be real bugs:
- The first patch fixes a crash I saw on BeagleBone Black,
- The other patches are only compile-tested.
All patches in this series can be applied independently.
Part 2 will be much larger (touching 185 files), and will fix the
remaining cases that are currently harmless.
Thanks for your comments!
Geert Uytterhoeven (5):
clk: ti: Make sure clk_init_data is fully initialized
clk: visconti: Make sure clk_init_data is fully initialized
hwmon: (ltc4282) Make sure clk_init_data is fully initialized
iio: frequency: adf4377: Make sure clk_init_data is fully initialized
spi: amlogic-spisg: Make sure clk_init_data is fully initialized
drivers/clk/ti/adpll.c | 4 ++--
drivers/clk/ti/divider.c | 2 +-
drivers/clk/ti/mux.c | 2 +-
drivers/clk/visconti/clkc.c | 2 +-
drivers/hwmon/ltc4282.c | 2 +-
drivers/iio/frequency/adf4377.c | 2 +-
drivers/spi/spi-amlogic-spisg.c | 2 +-
7 files changed, 8 insertions(+), 8 deletions(-)
--
2.43.0
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
On Wed, 19 Aug 2026 at 21:05, Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> The clk_init_data structure contains three mutually-exclusive members
> for different methods to specify the possible parents of a clock,
> prompting drivers to initialize only the members they need. When commit
> fc0c209c147f35ed ("clk: Allow parents to be specified without string
> names") added the last two methods, this was done in a
> backwards-compatible way, using a priority-based scheme:
> - .name, .ops, .num_parents, and .flags must always be initialized,
> - if .num_parents is non-zero, .parent_names must be initialized,
> - if .parent_names is NULL, .parent_data must be initialized,
> - if .parent_data is NULL, .parent_hws must be initialized
> and valid.
>
> However, not initializing all members may cause subtle issues, which are
> only exposed when CONFIG_INIT_STACK_ALL_PATTERN or
> CONFIG_INIT_STACK_NONE is enabled.
>
> Hence this series makes sure all members are fully initialized, to fix
> such bugs, and to avoid future breakage when converting drivers to a
> different method for specifying the parents.
>
> This (small) series is part 1, and fixes all cases that I identified to
> be real bugs:
> - The first patch fixes a crash I saw on BeagleBone Black,
> - The other patches are only compile-tested.
> All patches in this series can be applied independently.
>
> Part 2 will be much larger (touching 185 files), and will fix the
> remaining cases that are currently harmless.
FTR, I split part two in 13 subparts, per subsystem:
- "[PATCH 0/2] ARM/soc: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/cover.1787239869.git.geert+renesas@glider.be>
- "[PATCH 0/3] ASoC: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/cover.1787239902.git.geert+renesas@glider.be>
- "[PATCH 00/45] clk: Make sure clk_init_data is fully initialized (part two)"
https://lore.kernel.org/cover.1787239813.git.geert+renesas@glider.be>
- "[PATCH 0/2] drm: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/cover.1787239944.git.geert+renesas@glider.be>
- "[PATCH] i2c: bcm2835: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/9f82f37e6d6c069cd44326bcd5e5a2a8069a13a9.1787239980.git.geert+renesas@glider.be>
- "[PATCH 0/2] iio: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/cover.1787240005.git.geert+renesas@glider.be>
- "[PATCH 0/3] media: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/cover.1787240035.git.geert+renesas@glider.be>
- "[PATCH] MIPS: Alchemy: clock: Make sure clk_init_data is fully"
https://lore.kernel.org/3610b51df642abb1fbb39f5bd93fddea43f8f164.1787240060.git.geert+renesas@glider.be>
- "[PATCH 0/2] mmc: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/cover.1787240090.git.geert+renesas@glider.be>
- "[PATCH net-next 0/3] net: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/cover.1787240118.git.geert+renesas@glider.be>
- "[PATCH] peci: controller: aspeed: Make sure clk_init_data is fully"
https://lore.kernel.org/48aa77c45e109f78ccd806bc3b7bf380c5bc5e71.1787240145.git.geert+renesas@glider.be>
- "[PATCH 0/2] phy: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/cover.1787240165.git.geert+renesas@glider.be>
- "[PATCH 0/5] rtc: Make sure clk_init_data is fully initialized"
https://lore.kernel.org/cover.1787241693.git.geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
On Wed, 19 Aug 2026 21:05:14 +0200, Geert Uytterhoeven wrote:
> clk: Make sure clk_init_data is fully initialized (part 1)
>
> Hi all,
>
> The clk_init_data structure contains three mutually-exclusive members
> for different methods to specify the possible parents of a clock,
> prompting drivers to initialize only the members they need. When commit
> fc0c209c147f35ed ("clk: Allow parents to be specified without string
> names") added the last two methods, this was done in a
> backwards-compatible way, using a priority-based scheme:
> - .name, .ops, .num_parents, and .flags must always be initialized,
> - if .num_parents is non-zero, .parent_names must be initialized,
> - if .parent_names is NULL, .parent_data must be initialized,
> - if .parent_data is NULL, .parent_hws must be initialized
> and valid.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.3
Thanks!
[5/5] spi: amlogic-spisg: Make sure clk_init_data is fully initialized
https://git.kernel.org/broonie/spi/c/b2702908ee23
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
© 2016 - 2026 Red Hat, Inc.