]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: marvell10g: fix 88x3310 power up
authorJiawen Wu <jiawenwu@trustnetic.com>
Wed, 19 Jul 2023 09:22:33 +0000 (17:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:33 +0000 (10:22 +0200)
commit01460ac6ff95d483a6ec76c96b90a3ee330b4d53
tree8968c74b0d1109e35a3f68f1192674afd72659f4
parent57743a86cce10ec674273d1db89c015a0ec1ec14
net: phy: marvell10g: fix 88x3310 power up

[ Upstream commit c7b75bea853daeb64fc831dbf39a6bbabcc402ac ]

Clear MV_V2_PORT_CTRL_PWRDOWN bit to set power up for 88x3310 PHY,
it sometimes does not take effect immediately. And a read of this
register causes the bit not to clear. This will cause mv3310_reset()
to time out, which will fail the config initialization. So add a delay
before the next access.

Fixes: c9cc1c815d36 ("net: phy: marvell10g: place in powersave mode at probe")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/marvell10g.c