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

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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -353,6 +353,10 @@ int aqr_firmware_load(struct phy_device *phydev)
{
	int ret;

	ret = aqr_wait_reset_complete(phydev);
	if (ret)
		return ret;

	/* Check if the firmware is not already loaded by pooling
	 * the current version returned by the PHY. If 0 is returned,
	 * no firmware is loaded.