mbox series

[net-next,0/2] net: axienet: Dynamically enable MDIO interface

Message ID 1604402770-78045-1-git-send-email-radhey.shyam.pandey@xilinx.com
Headers show
Series net: axienet: Dynamically enable MDIO interface | expand

Message

Radhey Shyam Pandey Nov. 3, 2020, 11:26 a.m. UTC
This patchset dynamically enable MDIO interface. The background for this
change is coming from Cadence GEM controller(macb) in which MDC is active 
only during MDIO read or write operations while the PHY registers are
read or written. It is implemented as an IP feature. 

For axiethernet as dynamic MDC enable/disable is not supported in hw
we are implementing it in sw. This change doesn't affect any existing
functionality.

Clayton Rayment (1):
  net: xilinx: axiethernet: Enable dynamic MDIO MDC

Radhey Shyam Pandey (1):
  net: xilinx: axiethernet: Introduce helper functions for MDC
    enable/disable

 drivers/net/ethernet/xilinx/xilinx_axienet.h      |  2 +
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 21 ++-------
 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c | 56 ++++++++++++++++++-----
 3 files changed, 51 insertions(+), 28 deletions(-)

Comments

Jakub Kicinski Nov. 7, 2020, 7:17 p.m. UTC | #1
On Tue, 3 Nov 2020 16:56:08 +0530 Radhey Shyam Pandey wrote:
> This patchset dynamically enable MDIO interface. The background for this
> change is coming from Cadence GEM controller(macb) in which MDC is active 
> only during MDIO read or write operations while the PHY registers are
> read or written. It is implemented as an IP feature. 
> 
> For axiethernet as dynamic MDC enable/disable is not supported in hw
> we are implementing it in sw. This change doesn't affect any existing
> functionality.

Applied, thank you!