dsa: mv88e6xxx: Handle eeprom-length property
authorAndrew Lunn <andrew@lunn.ch>
Tue, 10 May 2016 21:27:25 +0000 (23:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2016 23:36:29 +0000 (19:36 -0400)
commitf8cd8753def081b92b93209265bce68a73885ed0
treee438a6286d9a2cfbd56ef6e7608ed238ee4deb7e
parentff04955c2f678a2c4c3207e0184c4c389da9d1e2
dsa: mv88e6xxx: Handle eeprom-length property

A switch can export an attached EEPROM using the standard ethtool API.
However the switch itself cannot determine the size of the EEPROM, and
multiple sizes are allowed. Thus a device tree property is supported
to indicate the length of the EEPROM. Parse this property during
device probe, and implement a callback function to retrieve it.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h