diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2017-12-02 22:51:28 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-03 09:38:17 -0500 |
commit | 136819a6e8df374e6b9b424586ff11c9e241a1cb (patch) | |
tree | 9edc421b1423cbbc7a210d238b52e1aee168b8bc /drivers/net/ipvlan/ipvlan_main.c | |
parent | f609ab0ed8e7bef2cd61d230bf9e83e1ec5b9ddb (diff) | |
download | linux-136819a6e8df374e6b9b424586ff11c9e241a1cb.tar.gz linux-136819a6e8df374e6b9b424586ff11c9e241a1cb.tar.bz2 linux-136819a6e8df374e6b9b424586ff11c9e241a1cb.zip |
net: phy: realtek: add utility functions to read/write page addresses
Realtek PHYs implement the concept of so-called "extension pages". The
reason for this is probably because these PHYs expose more registers
than available in the standard address range.
After all read/write operations on such a page are done the driver
should switch back to page 0 where the standard MII registers (such as
MII_BMCR) are available.
When referring to such a register the datasheets of RTL8211E and
RTL8211F always specify:
- the page / "ext. page" which has to be written to RTL821x_PAGE_SELECT
- an address (sometimes also called reg)
These new utility functions make the existing code easier to read since
it removes some duplication (switching back to page 0 is done within the
new helpers for example).
No functional changes are intended.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipvlan/ipvlan_main.c')
0 files changed, 0 insertions, 0 deletions