]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c180dc56f3750cd29cc98ad06d04fd78d9347d2
treee438a6286d9a2cfbd56ef6e7608ed238ee4deb7e
parent6a6a3e45ebf3ef6a63a8f74e82be1941a8826dce
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