diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-05-10 23:27:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-11 19:36:29 -0400 |
commit | f8cd8753def081b92b93209265bce68a73885ed0 (patch) | |
tree | e438a6286d9a2cfbd56ef6e7608ed238ee4deb7e /drivers/net/dsa/mv88e6xxx.h | |
parent | ff04955c2f678a2c4c3207e0184c4c389da9d1e2 (diff) | |
download | linux-f8cd8753def081b92b93209265bce68a73885ed0.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index 9ef7673f0c61..40e8721ecfb1 100644 --- a/drivers/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h @@ -602,6 +602,9 @@ struct mv88e6xxx_priv_state { * switch soft reset. */ struct gpio_desc *reset; + + /* set to size of eeprom if supported by the switch */ + int eeprom_len; }; enum stat_type { |