staging: vc04_services: Convert dsb() to dsb(sy)
authorMichael Zoran <mzoran@crowfest.net>
Wed, 19 Oct 2016 22:58:09 +0000 (15:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2016 13:21:26 +0000 (15:21 +0200)
The dsb() macro for 32 arm compiles to dsb(sy) in the binary file.
This macro is no longer supported on arm64, so instead use dsb(sy)
which is completely binary compatible.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h

index ca1fee35cc733f367a79c58b7451dfa16b04a14c..32d12e6e1b4fcb30825f74db1b8591c3cea57961 100644 (file)
@@ -210,7 +210,7 @@ remote_event_signal(REMOTE_EVENT_T *event)
 
        event->fired = 1;
 
-       dsb();         /* data barrier operation */
+       dsb(sy);         /* data barrier operation */
 
        if (event->armed)
                writel(0, g_regs + BELL2); /* trigger vc interrupt */
index 1254975a57bc62d210adb7f728ec35d1f1b4ded5..05954f983125f135c463668784d0854528d28417 100644 (file)
@@ -419,7 +419,7 @@ remote_event_wait(REMOTE_EVENT_T *event)
 {
        if (!event->fired) {
                event->armed = 1;
-               dsb();
+               dsb(sy);
                if (!event->fired) {
                        if (down_interruptible(event->event) != 0) {
                                event->armed = 0;
index 9be484c776d044a51bb3904c6a1e2cd11a852e35..9013bdbf242cc33da3a52b26bad9a0c906eba06f 100644 (file)
@@ -184,11 +184,11 @@ enum {
 
 #define DEBUG_INITIALISE(local) int *debug_ptr = (local)->debug;
 #define DEBUG_TRACE(d) \
-       do { debug_ptr[DEBUG_ ## d] = __LINE__; dsb(); } while (0)
+       do { debug_ptr[DEBUG_ ## d] = __LINE__; dsb(sy); } while (0)
 #define DEBUG_VALUE(d, v) \
-       do { debug_ptr[DEBUG_ ## d] = (v); dsb(); } while (0)
+       do { debug_ptr[DEBUG_ ## d] = (v); dsb(sy); } while (0)
 #define DEBUG_COUNT(d) \
-       do { debug_ptr[DEBUG_ ## d]++; dsb(); } while (0)
+       do { debug_ptr[DEBUG_ ## d]++; dsb(sy); } while (0)
 
 #else /* VCHIQ_ENABLE_DEBUG */