mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx: flush mii register writes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17695 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -21,7 +21,13 @@ struct ag71xx_mdio *ag71xx_mdio_bus;
|
||||
static inline void ag71xx_mdio_wr(struct ag71xx_mdio *am, unsigned reg,
|
||||
u32 value)
|
||||
{
|
||||
__raw_writel(value, am->mdio_base + reg);
|
||||
void __iomem *r;
|
||||
|
||||
r = am->mdio_base + reg;
|
||||
__raw_writel(value, r);
|
||||
|
||||
/* flush write */
|
||||
(void) __raw_readl(r);
|
||||
}
|
||||
|
||||
static inline u32 ag71xx_mdio_rr(struct ag71xx_mdio *am, unsigned reg)
|
||||
|
||||
Reference in New Issue
Block a user