2015-02-11 10:17:55 +00:00
|
|
|
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(+)
|
|
|
|
|
|
|
|
--- a/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
|
|
|
|
+++ b/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
|
2015-02-13 07:38:27 +00:00
|
|
|
@@ -78,6 +78,7 @@ void notrace _fiq_print(enum fiq_debug_l
|
2015-02-11 10:17:55 +00:00
|
|
|
* 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;
|
2015-02-13 07:38:27 +00:00
|
|
|
@@ -103,16 +104,23 @@ inline void fiq_fsm_spin_lock(fiq_lock_t
|
2015-02-11 10:17:55 +00:00
|
|
|
}
|
|
|
|
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
|