mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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>
This commit is contained in:
parent
663117327a
commit
ad649a1fac
@ -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.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user