0093-fiq_fsm-fix-build-on-bcm2708-and-bcm2709-platforms.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From e424348e42e85fa0224819055668845710c54887 Mon Sep 17 00:00:00 2001
  2. From: P33M <P33M@github.com>
  3. Date: Thu, 22 Jan 2015 11:59:41 +0000
  4. Subject: [PATCH 093/114] fiq_fsm: fix build on bcm2708 and bcm2709 platforms
  5. ---
  6. drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c | 8 ++++++++
  7. 1 file changed, 8 insertions(+)
  8. --- a/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
  9. +++ b/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
  10. @@ -78,6 +78,7 @@ void notrace _fiq_print(enum fiq_debug_l
  11. * fiq_fsm_spin_lock() - ARMv6+ bare bones spinlock
  12. * Must be called with local interrupts and FIQ disabled.
  13. */
  14. +#ifdef CONFIG_ARCH_BCM2709
  15. inline void fiq_fsm_spin_lock(fiq_lock_t *lock)
  16. {
  17. unsigned long tmp;
  18. @@ -103,16 +104,23 @@ inline void fiq_fsm_spin_lock(fiq_lock_t
  19. }
  20. smp_mb();
  21. }
  22. +#else
  23. +inline void fiq_fsm_spin_lock(fiq_lock_t *lock) { }
  24. +#endif
  25. /**
  26. * fiq_fsm_spin_unlock() - ARMv6+ bare bones spinunlock
  27. */
  28. +#ifdef CONFIG_ARCH_BCM2709
  29. inline void fiq_fsm_spin_unlock(fiq_lock_t *lock)
  30. {
  31. smp_mb();
  32. lock->tickets.owner++;
  33. dsb_sev();
  34. }
  35. +#else
  36. +inline void fiq_fsm_spin_unlock(fiq_lock_t *lock) { }
  37. +#endif
  38. /**
  39. * fiq_fsm_restart_channel() - Poke channel enable bit for a split transaction