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)
commit30e3bb4d1a774888676dc6ab4467825ece4a6afc
tree407b94e9156e484316a5c5df881756f8c233a4b3
parent2efa053d394fbc032f2e2ffc0d4fae9310a7ea5a
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