net: phy: aquantia: wait for FW reset before checking the vendor ID
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 8 Jul 2024 07:50:21 +0000 (09:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jul 2024 03:57:28 +0000 (04:57 +0100)
commitad649a1fac37e390de5b4211b902ec666c4cd202
treece7d3ec54663ef3a12cacac35ef091c4fe1cdfa9
parent663117327a39d1ad8be79d3c6451173c37e97c56
net: phy: aquantia: wait for FW reset before checking the vendor ID

Checking the firmware register before it complete the boot process makes
no sense, it will report 0 even if FW is available from internal memory.
Always wait for FW to boot before continuing or we'll unnecessarily try
to load it from nvmem/filesystem and fail.

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