[ar71xx] put in an implicit read-after-write to flush things out.

Note: I may need to revisit this for mips74k.
This commit is contained in:
Adrian Chadd 2016-12-29 17:31:07 +00:00
parent 4938d86764
commit ccfb1ab87c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310780

View file

@ -527,7 +527,10 @@ typedef enum {
*((volatile uint32_t *)MIPS_PHYS_TO_KSEG1((reg)))
#define ATH_WRITE_REG(reg, val) \
*((volatile uint32_t *)MIPS_PHYS_TO_KSEG1((reg))) = (val)
do { \
*((volatile uint32_t *)MIPS_PHYS_TO_KSEG1((reg))) = (val); \
(void) ATH_READ_REG(reg); \
} while (0)
static inline void
ar71xx_ddr_flush(uint32_t reg)