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

Revert "reset: microchip-sparx5: allow building as a module"

This reverts commit b6b9585876da018bdde2d5f15d206a689c0d70f3.

This breaks MDIO on kswitch-d10, presumably because the global switch
reset is not released early enough anymore.

Reported-by: Michael Walle <michael@walle.cc>
Cc: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220713084010.168720-1-p.zabel@pengutronix.de

+7 -3
+1 -1
drivers/reset/Kconfig
··· 115 115 This enables the reset controller driver for NXP LPC18xx/43xx SoCs. 116 116 117 117 config RESET_MCHP_SPARX5 118 - tristate "Microchip Sparx5 reset driver" 118 + bool "Microchip Sparx5 reset driver" 119 119 depends on ARCH_SPARX5 || SOC_LAN966 || COMPILE_TEST 120 120 default y if SPARX5_SWITCH 121 121 select MFD_SYSCON
+6 -2
drivers/reset/reset-microchip-sparx5.c
··· 149 149 }, 150 150 { } 151 151 }; 152 - MODULE_DEVICE_TABLE(of, mchp_sparx5_reset_of_match); 153 152 154 153 static struct platform_driver mchp_sparx5_reset_driver = { 155 154 .probe = mchp_sparx5_reset_probe, ··· 158 159 }, 159 160 }; 160 161 161 - module_platform_driver(mchp_sparx5_reset_driver); 162 + static int __init mchp_sparx5_reset_init(void) 163 + { 164 + return platform_driver_register(&mchp_sparx5_reset_driver); 165 + } 166 + 167 + postcore_initcall(mchp_sparx5_reset_init); 162 168 163 169 MODULE_DESCRIPTION("Microchip Sparx5 switch reset driver"); 164 170 MODULE_AUTHOR("Steen Hegelund <steen.hegelund@microchip.com>");