net: axienet: Properly handle PCS/PMA PHY for 1000BaseX mode
authorRobert Hancock <robert.hancock@calian.com>
Wed, 28 Oct 2020 17:14:29 +0000 (11:14 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:32:05 +0000 (14:32 +0200)
commit3e08fd4a82986f200baa77312b1f248bb567b04e
treed5f82166802d085c2c69544459323e26154168fd
parentd65e7d0c74499c53c5f9d939e2f913560f89c5a3
net: axienet: Properly handle PCS/PMA PHY for 1000BaseX mode

[ Upstream commit 1a02556086fc0eb16e0a0d09043e9ffb0e31c7db ]

Update the axienet driver to properly support the Xilinx PCS/PMA PHY
component which is used for 1000BaseX and SGMII modes, including
properly configuring the auto-negotiation mode of the PHY and reading
the negotiated state from the PHY.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link: https://lore.kernel.org/r/20201028171429.1699922-1-robert.hancock@calian.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c