net/e1000: implement protect and unprotect for attached flash
Some supported flash devices (e.g. SST25VF040) are write protected after
power up. If the device holds a valid firmware image the i210 can handle
that just fine. If however there is no firmware programmed, a procedure
is needed to remove this protection before an image can be flashed.

So implement the needed callbacks to make the commands protect and
unprotect do the right thing.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1136928 commit 285eb004c86e24c6447ffbd0965d7607f5d5640d
@Uwe Kleine-König Uwe Kleine-König authored on 27 Nov 2017
Sascha Hauer committed on 28 Nov 2017
Showing 2 changed files
View
drivers/net/e1000/e1000.h
View
drivers/net/e1000/eeprom.c