OSDN Git Service

net: xilinx: axiethernet: Enable dynamic MDIO MDC
authorClayton Rayment <clayton.rayment@xilinx.com>
Tue, 3 Nov 2020 11:26:10 +0000 (16:56 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Nov 2020 19:13:52 +0000 (11:13 -0800)
commit253761a0e61b7128460e26e74f57356e3eb2072e
tree94615efc7b8e8524a434bf261ec7e9c0251e6507
parent6c3cbaa0f0cb86376010ffa045334a1ec34689ac
net: xilinx: axiethernet: Enable dynamic MDIO MDC

MDIO spec does not require an MDC at all times, only when MDIO
transactions are occurring. This patch allows the xilinx_axienet
driver to disable the MDC when not in use, and re-enable it when
needed. It also simplifies the driver by removing MDC disable
and enable in device reset sequence.

Signed-off-by: Clayton Rayment <clayton.rayment@xilinx.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c