]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: gemini: allow any RGMII interface mode
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 4 Jan 2022 16:38:31 +0000 (16:38 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:36:28 +0000 (16:36 +0100)
commit3ab539f274924315f7a20d0b607415f3b2c1229e
tree631772c8926f9bf0ac5287af1ecbd16e5848b2d0
parent035a82717c959fdc48d6ecaca7e77cbcfefd5223
net: gemini: allow any RGMII interface mode

BugLink: https://bugs.launchpad.net/bugs/1960566
[ Upstream commit 4e4f325a0a55907b14f579e6b1a38c53755e3de2 ]

The four RGMII interface modes take care of the required RGMII delay
configuration at the PHY and should not be limited by the network MAC
driver. Sadly, gemini was only permitting RGMII mode with no delays,
which would require the required delay to be inserted via PCB tracking
or by the MAC.

However, there are designs that require the PHY to add the delay, which
is impossible without Gemini permitting the other three PHY interface
modes. Fix the driver to allow these.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Link: https://lore.kernel.org/r/E1n4mpT-002PLd-Ha@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/cortina/gemini.c