]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: phy: marvell-88q2xxx: Align soft reset for mv88q2110 and mv88q2220
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sat, 5 Oct 2024 11:24:10 +0000 (13:24 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Oct 2024 01:18:16 +0000 (18:18 -0700)
commit21185019aa9c52d5273eea827f07b3feac811546
treed1591452b564876872c685a1a85c79c0f09b5c08
parented1f3b7f1572edd36a4bca86a52adffc76b0ab18
net: phy: marvell-88q2xxx: Align soft reset for mv88q2110 and mv88q2220

The soft reset implementations for mv88q2110 and mv88q2220 differ as the
later need to consider that auto negation is supported on mv88q2220
devices. In preparation of enabling auto negotiation on mv88q2110 merge
the two rest functions into a device generic one.

The mv88q2220 behavior is kept as is but extended to wait for the reset
bit to be clears before continuing, as was done previously on mv88q2220.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Dimitri Fedrau <dima.fedrau@gmail.com>
Tested-by: Stefan Eichenberger <eichest@gmail.com>
Link: https://patch.msgid.link/20241005112412.544360-2-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/marvell-88q2xxx.c