From e30aa8bf8d5ffe17cbcdfa963e2436e7c332fdcb Mon Sep 17 00:00:00 2001 From: kaloz Date: Mon, 24 Jan 2011 12:11:25 +0000 Subject: platform specific patches don't belong here - take #2 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25085 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches-2.6.36/976-ssb_increase_pci_delay.patch | 11 +++++++++++ .../977-ssb_export_fallback_sprom.patch | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 target/linux/brcm47xx/patches-2.6.36/976-ssb_increase_pci_delay.patch create mode 100644 target/linux/brcm47xx/patches-2.6.36/977-ssb_export_fallback_sprom.patch (limited to 'target/linux/brcm47xx/patches-2.6.36') diff --git a/target/linux/brcm47xx/patches-2.6.36/976-ssb_increase_pci_delay.patch b/target/linux/brcm47xx/patches-2.6.36/976-ssb_increase_pci_delay.patch new file mode 100644 index 000000000..af67367b1 --- /dev/null +++ b/target/linux/brcm47xx/patches-2.6.36/976-ssb_increase_pci_delay.patch @@ -0,0 +1,11 @@ +--- a/drivers/ssb/driver_pcicore.c ++++ b/drivers/ssb/driver_pcicore.c +@@ -370,7 +370,7 @@ static void ssb_pcicore_init_hostmode(st + set_io_port_base(ssb_pcicore_controller.io_map_base); + /* Give some time to the PCI controller to configure itself with the new + * values. Not waiting at this point causes crashes of the machine. */ +- mdelay(10); ++ mdelay(300); + register_pci_controller(&ssb_pcicore_controller); + } + diff --git a/target/linux/brcm47xx/patches-2.6.36/977-ssb_export_fallback_sprom.patch b/target/linux/brcm47xx/patches-2.6.36/977-ssb_export_fallback_sprom.patch new file mode 100644 index 000000000..2a22a3a38 --- /dev/null +++ b/target/linux/brcm47xx/patches-2.6.36/977-ssb_export_fallback_sprom.patch @@ -0,0 +1,20 @@ +--- a/drivers/ssb/sprom.c ++++ b/drivers/ssb/sprom.c +@@ -176,6 +176,7 @@ const struct ssb_sprom *ssb_get_fallback + { + return fallback_sprom; + } ++EXPORT_SYMBOL(ssb_get_fallback_sprom); + + /* http://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */ + bool ssb_is_sprom_available(struct ssb_bus *bus) +--- a/include/linux/ssb/ssb.h ++++ b/include/linux/ssb/ssb.h +@@ -401,6 +401,7 @@ extern bool ssb_is_sprom_available(struc + /* Set a fallback SPROM. + * See kdoc at the function definition for complete documentation. */ + extern int ssb_arch_set_fallback_sprom(const struct ssb_sprom *sprom); ++extern const struct ssb_sprom *ssb_get_fallback_sprom(void); + + /* Suspend a SSB bus. + * Call this from the parent bus suspend routine. */ -- cgit v1.2.3