]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: phy: marvell: configure RGMII delays for 88E1118
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 4 Jan 2022 16:38:19 +0000 (16:38 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 10:02:52 +0000 (11:02 +0100)
commitfa37e6757e847d4409098680ea88e2284fd30606
tree0bc612dda7b795491ad0a8a48474c27374132275
parentcc094af109f4766fcf75cf3323e791df98c81b84
net: phy: marvell: configure RGMII delays for 88E1118

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit f22725c95ececb703c3f741e8f946d23705630b7 ]

Corentin Labbe reports that the SSI 1328 does not work when allowing
the PHY to operate at gigabit speeds, but does work with the generic
PHY driver.

This appears to be because m88e1118_config_init() writes a fixed value
to the MSCR register, claiming that this is to enable 1G speeds.
However, this always sets bits 4 and 5, enabling RGMII transmit and
receive delays. The suspicion is that the original board this was
added for required the delays to make 1G speeds work.

Add the necessary configuration for RGMII delays for the 88E1118 to
bring this into line with the requirements for RGMII support, and thus
make the SSI 1328 work.

Corentin Labbe has tested this on gemini-ssi1328 and gemini-ns2502.

Reported-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/phy/marvell.c