Commit ad649a1f authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by David S. Miller

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: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 66311732
...@@ -353,6 +353,10 @@ int aqr_firmware_load(struct phy_device *phydev) ...@@ -353,6 +353,10 @@ int aqr_firmware_load(struct phy_device *phydev)
{ {
int ret; int ret;
ret = aqr_wait_reset_complete(phydev);
if (ret)
return ret;
/* Check if the firmware is not already loaded by pooling /* Check if the firmware is not already loaded by pooling
* the current version returned by the PHY. If 0 is returned, * the current version returned by the PHY. If 0 is returned,
* no firmware is loaded. * no firmware is loaded.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment