Skip to content

Commit a4f0866

Browse files
geertukuba-moo
authored andcommitted
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: 2df8e64 ("dpll: Add basic Microchip ZL3073x support") Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://patch.msgid.link/97804163aeb262f0e0706d00c29d9bb751844454.1753874405.git.geert+renesas@glider.be Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 77bf1c5 commit a4f0866

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/dpll/zl3073x/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

33
config ZL3073X
4-
tristate "Microchip Azurite DPLL/PTP/SyncE devices"
4+
tristate "Microchip Azurite DPLL/PTP/SyncE devices" if COMPILE_TEST
55
depends on NET
66
select DPLL
77
select NET_DEVLINK
@@ -16,9 +16,9 @@ config ZL3073X
1616

1717
config ZL3073X_I2C
1818
tristate "I2C bus implementation for Microchip Azurite devices"
19-
depends on I2C && ZL3073X
19+
depends on I2C
2020
select REGMAP_I2C
21-
default m
21+
select ZL3073X
2222
help
2323
This is I2C bus implementation for Microchip Azurite DPLL/PTP/SyncE
2424
devices.
@@ -28,9 +28,9 @@ config ZL3073X_I2C
2828

2929
config ZL3073X_SPI
3030
tristate "SPI bus implementation for Microchip Azurite devices"
31-
depends on SPI && ZL3073X
31+
depends on SPI
3232
select REGMAP_SPI
33-
default m
33+
select ZL3073X
3434
help
3535
This is SPI bus implementation for Microchip Azurite DPLL/PTP/SyncE
3636
devices.

0 commit comments

Comments
 (0)