AR8216: improve mmd register access
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 4 Mar 2016 08:33:33 +0000 (08:33 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 4 Mar 2016 08:33:33 +0000 (08:33 +0000)
commit1e974de62944617fa9b4e37d7efc992735f8b691
tree407b94e9156e484316a5c5df881756f8c233a4b3
parentbdf8124cd22c1d9a027f6ca7f56230e353cf83ff
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48914 3c298f89-4303-0410-b956-a3cf2f4a3e73
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