Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dpll: Make ZL3073X invisible

Currently, the user is always asked about the Microchip Azurite
DPLL/PTP/SyncE core driver, even when I2C and SPI are disabled, and thus
the driver cannot be used at all.

Fix this by making the Kconfig symbol for the core driver invisible
(unless compile-testing), and selecting it by the bus glue sub-drivers.
Drop the modular defaults, as drivers should not default to enabled.

Fixes: 2df8e64e01c10a4b ("dpll: Add basic Microchip ZL3073x support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/97804163aeb262f0e0706d00c29d9bb751844454.1753874405.git.geert+renesas@glider.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Geert Uytterhoeven and committed by
Jakub Kicinski
a4f0866e 77bf1c55

+5 -5
+5 -5
drivers/dpll/zl3073x/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 3 3 config ZL3073X 4 - tristate "Microchip Azurite DPLL/PTP/SyncE devices" 4 + tristate "Microchip Azurite DPLL/PTP/SyncE devices" if COMPILE_TEST 5 5 depends on NET 6 6 select DPLL 7 7 select NET_DEVLINK ··· 16 16 17 17 config ZL3073X_I2C 18 18 tristate "I2C bus implementation for Microchip Azurite devices" 19 - depends on I2C && ZL3073X 19 + depends on I2C 20 20 select REGMAP_I2C 21 - default m 21 + select ZL3073X 22 22 help 23 23 This is I2C bus implementation for Microchip Azurite DPLL/PTP/SyncE 24 24 devices. ··· 28 28 29 29 config ZL3073X_SPI 30 30 tristate "SPI bus implementation for Microchip Azurite devices" 31 - depends on SPI && ZL3073X 31 + depends on SPI 32 32 select REGMAP_SPI 33 - default m 33 + select ZL3073X 34 34 help 35 35 This is SPI bus implementation for Microchip Azurite DPLL/PTP/SyncE 36 36 devices.