]> asedeno.scripts.mit.edu Git - linux.git/commit
net: fec: add C45 MDIO read/write support
authorMarco Hartmann <marco.hartmann@nxp.com>
Wed, 21 Aug 2019 11:43:49 +0000 (11:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Aug 2019 23:16:03 +0000 (16:16 -0700)
commitd3ee8ec7de83abf4325c11bcd36cbd01d7a66789
tree0792bdf47160b59c33b952e1085e673c6e3ce641
parentc2a5b91e8c52288b55781f9a900614ca1b6d6a5a
net: fec: add C45 MDIO read/write support

IEEE 802.3ae clause 45 defines a modified MDIO protocol that uses a two
staged access model in order to increase the address space.

This patch adds support for C45 MDIO read and write accesses, which are
used whenever the MII_ADDR_C45 flag in the regnum argument is set.
In case it is not set, C22 accesses are used as before.

Signed-off-by: Marco Hartmann <marco.hartmann@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c