diff options
author | Jonas Gorski <jogo@openwrt.org> | 2012-05-06 21:25:34 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2012-05-06 21:25:34 +0000 |
commit | b218b15709d8699be79fd21e96bf589ca74aa187 (patch) | |
tree | a0054d76b5e524d2fcffabf6b1db30e26b3bfa63 /target/linux/brcm63xx/patches-3.3/306-MIPS-BCM63XX-register-devices-earlier.patch | |
parent | 0ff3c396d39e762cb0230eb84b9bd1d29dddc520 (diff) | |
download | upstream-b218b15709d8699be79fd21e96bf589ca74aa187.tar.gz upstream-b218b15709d8699be79fd21e96bf589ca74aa187.tar.bz2 upstream-b218b15709d8699be79fd21e96bf589ca74aa187.zip |
bcm63xx: fix a race between PCI bus scan and fallback sprom registration
The fallback sprom handler was installed too late, resulting in ssb
failing to get a valid sprom on some devices.
Fixes #11384.
SVN-Revision: 31638
Diffstat (limited to 'target/linux/brcm63xx/patches-3.3/306-MIPS-BCM63XX-register-devices-earlier.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.3/306-MIPS-BCM63XX-register-devices-earlier.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-3.3/306-MIPS-BCM63XX-register-devices-earlier.patch b/target/linux/brcm63xx/patches-3.3/306-MIPS-BCM63XX-register-devices-earlier.patch new file mode 100644 index 0000000000..3e74e97630 --- /dev/null +++ b/target/linux/brcm63xx/patches-3.3/306-MIPS-BCM63XX-register-devices-earlier.patch @@ -0,0 +1,21 @@ +From d42f3f75a5d1abe9f7c5275fb59f3e894e83043d Mon Sep 17 00:00:00 2001 +From: Jonas Gorski <jonas.gorski@gmail.com> +Date: Sun, 6 May 2012 15:05:48 +0200 +Subject: [PATCH 1/2] MIPS: BCM63XX: register devices earlier + +Register devices as an arch initcall so that the fallback sprom gets +installed in the same phase as the pci bus gets registered. + +Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> +--- + arch/mips/bcm63xx/setup.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +--- a/arch/mips/bcm63xx/setup.c ++++ b/arch/mips/bcm63xx/setup.c +@@ -150,4 +150,4 @@ int __init bcm63xx_register_devices(void + return board_register_devices(); + } + +-device_initcall(bcm63xx_register_devices); ++arch_initcall(bcm63xx_register_devices); |