net: phy: aquantia: only poll GLOBAL_CFG regs on aqr113, aqr113c and aqr115c
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 29 Jul 2024 15:03:14 +0000 (17:03 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Jul 2024 01:27:58 +0000 (18:27 -0700)
commita7f3abcf635767b2e19c4c55c4c35756595ebc86
tree9d1527146f6c7eb823a4616c5c87b506cc48fa32
parent84383b5ef4cd21b4a67de92afdc05a03b5247db9
net: phy: aquantia: only poll GLOBAL_CFG regs on aqr113, aqr113c and aqr115c

Commit 708405f3e56e ("net: phy: aquantia: wait for the GLOBAL_CFG to
start returning real values") introduced a workaround for an issue
observed on aqr115c. However there were never any reports of it
happening on other models and the workaround has been reported to cause
and issue on aqr113c (and it may cause the same on any other model not
supporting 10M mode).

Let's limit the impact of the workaround to aqr113, aqr113c and aqr115c
and poll the 100M GLOBAL_CFG register instead as both models are known
to support it correctly.

Reported-by: Jon Hunter <jonathanh@nvidia.com>
Closes: https://lore.kernel.org/lkml/7c0140be-4325-4005-9068-7e0fc5ff344d@nvidia.com/
Fixes: 708405f3e56e ("net: phy: aquantia: wait for the GLOBAL_CFG to start returning real values")
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Antoine Tenart <atenart@kernel.org>
Link: https://patch.msgid.link/20240729150315.65798-1-brgl@bgdev.pl
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/aquantia/aquantia_main.c