AR8216: improve mmd register access
authorJohn Crispin <john@openwrt.org>
Fri, 4 Mar 2016 08:33:33 +0000 (08:33 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 4 Mar 2016 08:33:33 +0000 (08:33 +0000)
commit3a03c08c821d580881ddc1b8a62f45f3801860de
treed702a583638c58c7ad843c7d2c2ebf2f42b0d0e0
parentd3776bdfc98cee205b74b5775bb0e96ced7193f7
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
target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8216.h
target/linux/generic/files/drivers/net/phy/ar8327.c