net/e1000: don't access the (simulated) eeprom when it is invalid
The shadow RAM that is used to serve read requests from the eeprom
interface isn't valid in all cases. Catch these by returning an error in
the eeprom read function and make eeprom validation dependant on
working access.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent f995e8a commit 95c346ccaa6da2257f605d18ac7595b99f628419
@Uwe Kleine-König Uwe Kleine-König authored on 23 Nov 2017
Sascha Hauer committed on 24 Nov 2017
Showing 3 changed files
View
drivers/net/e1000/e1000.h
View
drivers/net/e1000/eeprom.c
View
drivers/net/e1000/main.c