]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ks8851: companion eeprom access through ethtool
authorSebastien Jan <s-jan@ti.com>
Wed, 5 May 2010 08:45:54 +0000 (08:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 May 2010 04:27:45 +0000 (21:27 -0700)
commita84afa40e07b6882ca46a7287d8ca4a8c5430f60
tree24c929899871aff4faef2f8d891568ceab9a0087
parenta4bdfff74464f86d7e3b8feaf42d18960adc5514
ks8851: companion eeprom access through ethtool

Accessing ks8851 companion eeprom permits modifying the ks8851 stored
MAC address.

Example how to change the MAC address using ethtool, to set the
01:23:45:67:89:AB MAC address:
$ echo "0:AB8976452301" | xxd -r > mac.bin
$ sudo ethtool -E eth0 magic 0x8870 offset 2 < mac.bin

Signed-off-by: Sebastien Jan <s-jan@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ks8851.c