net: phy: aquantia: autodetect if firmware needs to be loaded
authorJeremy Gebben <jgebben@sweptlaser.com>
Tue, 18 Sep 2018 21:49:37 +0000 (15:49 -0600)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 24 Oct 2018 19:45:37 +0000 (14:45 -0500)
commit30a2c8cca80ed71384e5c1ebc4e52695c3db8fff
tree3a597d9aa8b32243579d662a3b03e1eb3244f81f
parent4506423ad23749a28ae48720bc64ad40caf089b2
net: phy: aquantia: autodetect if firmware needs to be loaded

If the phy reports a valid firmware version and doesn't indicate
a fault, skip loading the firmware.  This allows the same image
to be used on boards that have firmware storage and those that do not.

Signed-off-by: Jeremy Gebben <jgebben@sweptlaser.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/aquantia.c