net/e1000: Only read EEPROM_INIT_CONTROL2_REG if it is needed
E1000_ich8lan, e1000_82573, e1000_82574 and e1000_igb
devices (hw->mac_type) do not use data read from
EEPROM_INIT_CONTROL2_REG in e1000_setup_link(), so there's no reason
for it to bail out when EEPROM read fails. An examlpe use-case would
be a i210 adapter initialized from iNVM with no valid EEPROM attached.

Change the code to only call e1000_read_eeprom() for devices that do
need it.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent cc0bbff commit 2f4e28be6d15069f2d30b637dd645307c8c0c511
@Andrey Smirnov Andrey Smirnov authored on 13 Dec 2018
Sascha Hauer committed on 17 Dec 2018
Showing 1 changed file
View
drivers/net/e1000/main.c