aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-3.18/0093-fiq_fsm-fix-build-on-bcm2708-and-bcm2709-platforms.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-02-11 10:17:55 +0000
committerJohn Crispin <blogic@openwrt.org>2015-02-11 10:17:55 +0000
commitc291f76d24a4190551a42b7b77a2cfeb3f4d36f9 (patch)
tree8f9211217d7e2cbaa78d10b596d81e646b3b9aad /target/linux/brcm2708/patches-3.18/0093-fiq_fsm-fix-build-on-bcm2708-and-bcm2709-platforms.patch
parent0e26998162921c65cbfe2814e500c81ca7b50dad (diff)
downloadupstream-c291f76d24a4190551a42b7b77a2cfeb3f4d36f9.tar.gz
upstream-c291f76d24a4190551a42b7b77a2cfeb3f4d36f9.tar.bz2
upstream-c291f76d24a4190551a42b7b77a2cfeb3f4d36f9.zip
brcm2708: update to v3.18
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44392 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm2708/patches-3.18/0093-fiq_fsm-fix-build-on-bcm2708-and-bcm2709-platforms.patch')
-rwxr-xr-xtarget/linux/brcm2708/patches-3.18/0093-fiq_fsm-fix-build-on-bcm2708-and-bcm2709-platforms.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-3.18/0093-fiq_fsm-fix-build-on-bcm2708-and-bcm2709-platforms.patch b/target/linux/brcm2708/patches-3.18/0093-fiq_fsm-fix-build-on-bcm2708-and-bcm2709-platforms.patch
new file mode 100755
index 0000000000..19ac329751
--- /dev/null
+++ b/target/linux/brcm2708/patches-3.18/0093-fiq_fsm-fix-build-on-bcm2708-and-bcm2709-platforms.patch
@@ -0,0 +1,48 @@
+From e424348e42e85fa0224819055668845710c54887 Mon Sep 17 00:00:00 2001
+From: P33M <P33M@github.com>
+Date: Thu, 22 Jan 2015 11:59:41 +0000
+Subject: [PATCH 093/114] fiq_fsm: fix build on bcm2708 and bcm2709 platforms
+
+---
+ drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c b/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
+index 84618a5..0d2b04e 100644
+--- a/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
++++ b/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
+@@ -78,6 +78,7 @@ void notrace _fiq_print(enum fiq_debug_level dbg_lvl, volatile struct fiq_state
+ * fiq_fsm_spin_lock() - ARMv6+ bare bones spinlock
+ * Must be called with local interrupts and FIQ disabled.
+ */
++#ifdef CONFIG_ARCH_BCM2709
+ inline void fiq_fsm_spin_lock(fiq_lock_t *lock)
+ {
+ unsigned long tmp;
+@@ -103,16 +104,23 @@ inline void fiq_fsm_spin_lock(fiq_lock_t *lock)
+ }
+ smp_mb();
+ }
++#else
++inline void fiq_fsm_spin_lock(fiq_lock_t *lock) { }
++#endif
+
+ /**
+ * fiq_fsm_spin_unlock() - ARMv6+ bare bones spinunlock
+ */
++#ifdef CONFIG_ARCH_BCM2709
+ inline void fiq_fsm_spin_unlock(fiq_lock_t *lock)
+ {
+ smp_mb();
+ lock->tickets.owner++;
+ dsb_sev();
+ }
++#else
++inline void fiq_fsm_spin_unlock(fiq_lock_t *lock) { }
++#endif
+
+ /**
+ * fiq_fsm_restart_channel() - Poke channel enable bit for a split transaction
+--
+1.8.3.2
+