]> git.baikalelectronics.ru Git - kernel.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)
commit6904c9fc29e5ec4283d16c82c063792b02f028ea
tree8bbc85122057382954cba812f116af85388694c5
parentd669a743fa1cde163f00979c3e1dfb8753c3a6ad
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