diff options
author | John Crispin <john@openwrt.org> | 2016-03-04 08:33:33 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2016-03-04 08:33:33 +0000 |
commit | 3a03c08c821d580881ddc1b8a62f45f3801860de (patch) | |
tree | d702a583638c58c7ad843c7d2c2ebf2f42b0d0e0 /target/linux/generic/files/drivers/net/phy/ar8216.h | |
parent | d3776bdfc98cee205b74b5775bb0e96ced7193f7 (diff) | |
download | upstream-3a03c08c821d580881ddc1b8a62f45f3801860de.tar.gz upstream-3a03c08c821d580881ddc1b8a62f45f3801860de.tar.bz2 upstream-3a03c08c821d580881ddc1b8a62f45f3801860de.zip |
AR8216: improve mmd register access
Combine all bus operations for one MMD access in one function.
Protecting all these bus operations with one lock also helps
to avoid potential issues due to bus operations intercepting
the register and data write.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 48914
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.h')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.h b/target/linux/generic/files/drivers/net/phy/ar8216.h index fb961ff04c..0ccfef8abd 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.h +++ b/target/linux/generic/files/drivers/net/phy/ar8216.h @@ -478,9 +478,9 @@ void ar8xxx_phy_dbg_write(struct ar8xxx_priv *priv, int phy_addr, u16 dbg_addr, u16 dbg_data); void -ar8xxx_phy_mmd_write(struct ar8xxx_priv *priv, int phy_addr, u16 addr, u16 data); +ar8xxx_phy_mmd_write(struct ar8xxx_priv *priv, int phy_addr, u16 addr, u16 reg, u16 data); u16 -ar8xxx_phy_mmd_read(struct ar8xxx_priv *priv, int phy_addr, u16 addr); +ar8xxx_phy_mmd_read(struct ar8xxx_priv *priv, int phy_addr, u16 addr, u16 reg); void ar8xxx_phy_init(struct ar8xxx_priv *priv); int |