Re: [PATCH net-next 04/21] net: dsa: mv88e6xxx: factorize EEPROM access

2016-05-06 Thread Andrew Lunn
> @@ -2596,6 +2797,9 @@ int mv88e6xxx_setup_common(struct mv88e6xxx_priv_state > *ps) > > INIT_WORK(>bridge_work, mv88e6xxx_bridge_work); > > + if (mv88e6xxx_has(ps, MV88E6XXX_FLAG_EEPROM)) > + mutex_init(>eeprom_mutex); > + This seems to be the only place

[PATCH net-next 04/21] net: dsa: mv88e6xxx: factorize EEPROM access

2016-05-06 Thread Vivien Didelot
Add a MV88E6XXX_FLAG_EEPROM flag to describe switch models featuring an EEPROM and distribute the EEPROM access routines to all models. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6123.c | 2 + drivers/net/dsa/mv88e6131.c | 2 +