]> git.dujemihanovic.xyz Git - linux.git/commit
net: phy: aquantia: wait for the GLOBAL_CFG to start returning real values
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 8 Jul 2024 07:50:22 +0000 (09:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jul 2024 03:57:28 +0000 (04:57 +0100)
commit708405f3e56e3bee086f46a43398ee300c36a1d8
tree1d2ad2411b713d152b4e6bb80196760757946960
parentad649a1fac37e390de5b4211b902ec666c4cd202
net: phy: aquantia: wait for the GLOBAL_CFG to start returning real values

When the PHY is first coming up (or resuming from suspend), it's
possible that although the FW status shows as running, we still see
zeroes in the GLOBAL_CFG set of registers and cannot determine available
modes. Since all models support 10M, add a poll and wait the config to
become available.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/aquantia/aquantia_main.c