]> git.baikalelectronics.ru Git - 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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Jan 2022 18:31:22 +0000 (10:31 -0800)
commit9d369b11f64ecdc7a236b51ccee07124fe1d8dab
treecdeaff6fc42563249249970ac2ec269973f46254
parentd18d20f944fc3c2ec793f311f818beebe3a6fa45
net: gemini: allow any RGMII interface mode

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>
drivers/net/ethernet/cortina/gemini.c