net: phy: meson-gxl: improve link-up behavior
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 9 Mar 2022 21:04:47 +0000 (22:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2022 13:23:39 +0000 (14:23 +0100)
commit732c7172b79ce0d39bc9c3aebbe38ba7dd14a265
tree4bfa910ddb17b24d07c2298f614e9a6c9fb4881e
parent6c0d2f348be246de31bcadbfba7f9eccb244671d
net: phy: meson-gxl: improve link-up behavior

[ Upstream commit 2c87c6f9fbddc5b84d67b2fa3f432fcac6d99d93 ]

Sometimes the link comes up but no data flows. This patch fixes
this behavior. It's not clear what's the root cause of the issue.

According to the tests one other link-up issue remains.
In very rare cases the link isn't even reported as up.

Fixes: 84c8f773d2dc ("net: phy: meson-gxl: remove the use of .ack_callback()")
Tested-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/e3473452-a1f9-efcf-5fdd-02b6f44c3fcd@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/meson-gxl.c