diff options
author | 2022-07-01 20:36:29 +0530 | |
---|---|---|
committer | 2022-07-02 16:34:05 +0100 | |
commit | ffaf1de2f62d2e783a169976846d9fe6c11e8b64 (patch) | |
tree | 48774299f6a2bf957195b9300cc0d284413f58c4 /drivers/net/dsa/microchip/ksz_common.c | |
parent | net: dsa: microchip: lan937x: add dsa_tag_protocol (diff) | |
download | linux-dev-ffaf1de2f62d2e783a169976846d9fe6c11e8b64.tar.xz linux-dev-ffaf1de2f62d2e783a169976846d9fe6c11e8b64.zip |
net: dsa: microchip: lan937x: add phy read and write support
This patch add support for the writing and reading of the phy registers.
LAN937x uses the Vphy indirect addressing method for accessing the phys.
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.c')
-rw-r--r-- | drivers/net/dsa/microchip/ksz_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 07b6f34a437e..67bb4bff4d9b 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -207,6 +207,8 @@ static const struct ksz_dev_ops lan937x_dev_ops = { .get_port_addr = ksz9477_get_port_addr, .cfg_port_member = ksz9477_cfg_port_member, .port_setup = lan937x_port_setup, + .r_phy = lan937x_r_phy, + .w_phy = lan937x_w_phy, .r_mib_cnt = ksz9477_r_mib_cnt, .r_mib_pkt = ksz9477_r_mib_pkt, .r_mib_stat64 = ksz_r_mib_stats64, |