dde_linux: add dma_wmb/rmb barriers for arm_v7
and remove re-defined dma_wmb in fec driver
This commit is contained in:
parent
bd284347da
commit
6506240642
|
@ -1933,8 +1933,6 @@ void *devm_kzalloc(struct device *dev, size_t size, gfp_t gfp);
|
|||
|
||||
struct pm_qos_request {};
|
||||
|
||||
#define dma_wmb() __asm__ __volatile__ ("dmb oshst" : : : "memory")
|
||||
|
||||
#include <lx_emul/extern_c_end.h>
|
||||
|
||||
#endif /* _SRC__DRIVERS__NIC__FEC__LX_EMUL_H_ */
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
#define rmb() mb()
|
||||
#define wmb() asm volatile ("dsb st": : :"memory")
|
||||
|
||||
#define dma_wmb() barrier()
|
||||
#define dma_rmb() barrier()
|
||||
#define dma_wmb() asm volatile ("dmb oshst": : : "memory")
|
||||
#define dma_rmb() asm volatile ("dmb osh": : : "memory")
|
||||
|
||||
/*
|
||||
* This is the "safe" implementation as needed for a configuration
|
||||
|
|
Loading…
Reference in New Issue
Block a user