[PATCH net-next 0/3] net: dsa: mv88e6xxx: rework EEPROM code

From: Vivien Didelot
Date: Wed Jul 20 2016 - 12:06:54 EST

Some switches can access an optional external EEPROM via its registers.

The 88E6352 family of switches have 8-bit address / 16-bit data access.
The new 88E6390 family has 16-bit address / 8-bit data access.

This patchset cleans up the EEPROM code with 16-suffixed Global2 helpers
and makes it easy to add future support for 8-bit data EEPROM access.

It also removes unnecessary mutexes and a few locked access functions.

Vivien Didelot (3):
net: dsa: mv88e6xxx: remove unused phy_mutex
net: dsa: mv88e6xxx: rework EEPROM access
net: dsa: mv88e6xxx: kill last locked reg_read

drivers/net/dsa/mv88e6xxx/chip.c | 518 ++++++++++++++++------------------
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 45 ++-
2 files changed, 258 insertions(+), 305 deletions(-)