]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: dsa: Centralise global and port setup code into mv88e6xxx.
authorAndrew Lunn <andrew@lunn.ch>
Tue, 5 May 2015 23:09:47 +0000 (01:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:05:52 +0000 (16:05 -0400)
commit54d792f257c65aaff7ac2ab5ea5f83b14c910778
tree8bbc85122057382954cba812f116af85388694c5
parent239fb791d4ee194740e69fe9694f58ec404d1689
net: dsa: Centralise global and port setup code into mv88e6xxx.

The port setup code in the individual drivers is identical for 6123,
6171, and 6352, and very similar in 6131. Move it all into mv88e6xxx,
using the chip families to differentiate on features.

Similarly, the global setup is also very similar. Move the majority
into mv8e6xxx.

The chips themselves fall into families. Add helpers which uses the
device IDs to determine if a device is a member of a family or not.
Add some additional device IDs to the existing list, to make these
helper functions more complete. However these IDs are not yet added to
the probe functions.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6123_61_65.c
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h