Re: [PATCH v2 net-next v2 06/12] net: dsa: mv88e6xxx: rework Switch MAC setter

2016-07-18 Thread Andrew Lunn
On Mon, Jul 18, 2016 at 02:46:22PM -0400, Vivien Didelot wrote: > Switches such as 88E6185 as 3 Switch MAC registers in Global 1. Newer > chips such as 88E6352 have freed these registers in favor of an indirect > access in a Switch MAC/WoL/WoF register in Global 2. > > Explicit this difference wit

[PATCH v2 net-next v2 06/12] net: dsa: mv88e6xxx: rework Switch MAC setter

2016-07-18 Thread Vivien Didelot
Switches such as 88E6185 as 3 Switch MAC registers in Global 1. Newer chips such as 88E6352 have freed these registers in favor of an indirect access in a Switch MAC/WoL/WoF register in Global 2. Explicit this difference with G1 and G2 helpers and flags. Signed-off-by: Vivien Didelot --- driver