Skip to content

clk / soc: renesas: Rework Kconfig and Makefile logic

Simon Horman linux-arm-kernel linux-clk linux-renesas-soc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchSimon Horman
SeriesA-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH/RFC 0/2] clk / soc: renesas: Rework Kconfig and Makefile logic
Quoted 27 lines · Geert Uytterhoeven

Hi all,

This RFC patch series reworks the Kconfig and Makefile logic for the Renesas clock and SoC drivers. It was sparked by a discussion with Olof about the Renesas clock driver dependencies.

The goals are to:
- Allow precise control over and automatic selection of which (sub)drivers are used for which SoC (which may change in the future),
- Allow adding support for new SoCs easily,
- Allow compile-testing of all (sub)drivers,
- Keep driver selection logic in the subsystem-specific Kconfig independent from the architecture-specific Kconfig (i.e. no "select" from arch/arm64/Kconfig.platforms), to avoid dependencies.

The series can't be applied as-is, because compile-testing all drivers depends on independent fixes, some in other subsystems.

More details are provided in the individual patch descriptions.

For testing, this patch series, plus several fixes to allow more compile-testing, are available in the topic/clk-soc-renesas-Kconfig-rework branch of my renesas-drivers git repository at
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.

Quoted 4 lines

This has been tested on R-Car Gen2 and Gen3, and compile-tested for various other configurations.

Thanks for your comments!

Hi Geert,

thanks for working on this. I am very pleased to see something that is more robust with regards to adding new platforms without causing build breakage - I have been burnt by this several times.