0094-dwc_otg-put-some-barriers-back-where-they-should-be-.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 1e6d3936f120fd4420662850da0c89eb5c3d9f03 Mon Sep 17 00:00:00 2001
  2. From: P33M <P33M@github.com>
  3. Date: Thu, 22 Jan 2015 17:49:23 +0000
  4. Subject: [PATCH 094/114] dwc_otg: put some barriers back where they should be
  5. for UP
  6. ---
  7. drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c | 2 ++
  8. drivers/usb/host/dwc_otg/dwc_otg_hcd.c | 1 +
  9. 2 files changed, 3 insertions(+)
  10. --- a/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
  11. +++ b/drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.c
  12. @@ -1280,6 +1280,7 @@ void notrace dwc_otg_fiq_fsm(struct fiq_
  13. }
  14. state->fiq_done++;
  15. + mb();
  16. fiq_fsm_spin_unlock(&state->lock);
  17. }
  18. @@ -1340,5 +1341,6 @@ void notrace dwc_otg_fiq_nop(struct fiq_
  19. }
  20. state->fiq_done++;
  21. + mb();
  22. fiq_fsm_spin_unlock(&state->lock);
  23. }
  24. --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd.c
  25. +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd.c
  26. @@ -1928,6 +1928,7 @@ int fiq_fsm_queue_split_transaction(dwc_
  27. st->hcchar_copy.b.chen = 1;
  28. DWC_WRITE_REG32(&hc_regs->hcchar, st->hcchar_copy.d32);
  29. }
  30. + mb();
  31. fiq_fsm_spin_unlock(&hcd->fiq_state->lock);
  32. local_fiq_enable();
  33. return 0;