]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: dsa: vsc73xx: speed up MDIO bus to max allowed value
authorPawel Dembicki <paweldembicki@gmail.com>
Wed, 31 Jul 2024 20:34:55 +0000 (22:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 Aug 2024 00:25:03 +0000 (17:25 -0700)
commit8d5be2c4f4477915fee079572665198e70246b69
tree227bb9320b40d722136d75d68ed0ed9050430cbc
parent7e51d21ee01077c538d87c22fc9a164bd9b60a53
net: dsa: vsc73xx: speed up MDIO bus to max allowed value

According to the datasheet, the VSC73xx family's maximum internal MDIO bus
speed is 20 MHz. It also allows disabling the preamble.

This commit sets the MDIO clock prescaler to the minimum value and
disables the preamble to speed up MDIO operations.

It doesn't affect the external bus because it's configured in a different
subblock.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20240731203455.580262-1-paweldembicki@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/vitesse-vsc73xx-core.c