Skip to contentSkip to conversation

Revert "MIPS: BCM63XX: Call board_register_device from device_initcall()"

PATCH New Jonas Gorski 1 participant 1 message Mar 19, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "MIPS: BCM63XX: Call board_register_device from device_initcall()"

This commit causes a race between PCI scan and SSB fallback SPROM handler registration, causing the wifi to not work on slower systems. The only subsystem touched from board_register_devices is platform device registration, which is safe as an arch init call.

This reverts commit d64ed7ada2f689d2c62af1892ca55e47d3653e36.

---

This patch is in OpenWrt since ages, and we never encountered any issues from this revert.

 arch/mips/bcm63xx/setup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/bcm63xx/setup.c +1 -1
index 314231b..35e18e9 100644
@@ -157,4 +157,4 @@ int __init bcm63xx_register_devices(void)
 	return board_register_devices();
 }
 
-device_initcall(bcm63xx_register_devices);
+arch_initcall(bcm63xx_register_devices);
Signature · 1 line
1.7.10.4