net: e1000: add support for writing to EEPROM
authorHannu Lounento <hannu.lounento@ge.com>
Wed, 10 Jan 2018 19:31:24 +0000 (20:31 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:00:58 +0000 (12:00 +0100)
commitf1bcad22dd19754d2233d3150c841c3659ae9560
treef6ae6eae2c6081766be293e4ed24ea0e98708bc9
parenta61b65ffb572c5bd08311f033d70107a487fe479
net: e1000: add support for writing to EEPROM

Port functions for writing to EEPROM, updating the checksum and
committing data to flash from the Linux kernel igb driver.

Functions were ported from Linux 4.8-rc2 (694d0d0bb20).

Signed-off-by: Hannu Lounento <hannu.lounento@ge.com>
CC: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/net/e1000.c
drivers/net/e1000.h