summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6131.c
diff options
context:
space:
mode:
authorAndrew Lunn2015-05-06 01:09:52 +0200
committerDavid S. Miller2015-05-09 22:05:53 +0200
commit1441f4e59695682909bbbb7d5740c3fff326a4c3 (patch)
tree78a3d33022edb07ad08cfa3e2a2c4d6993f9ab7c /drivers/net/dsa/mv88e6131.c
parentnet: dsa: mv88e6171: Add other members of the family (diff)
downloadkernel-qcow2-linux-1441f4e59695682909bbbb7d5740c3fff326a4c3.tar.gz
kernel-qcow2-linux-1441f4e59695682909bbbb7d5740c3fff326a4c3.tar.xz
kernel-qcow2-linux-1441f4e59695682909bbbb7d5740c3fff326a4c3.zip
net: dsa: mv88e6131: Add support for mv88e6185
The mv88e6185 is part of the family that the mv88e6131 driver supports. Add it to the probe function, and set the number of ports. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6131.c')
-rw-r--r--drivers/net/dsa/mv88e6131.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6131.c b/drivers/net/dsa/mv88e6131.c
index 765de63f59bd..32f4a08e9bc9 100644
--- a/drivers/net/dsa/mv88e6131.c
+++ b/drivers/net/dsa/mv88e6131.c
@@ -37,6 +37,8 @@ static char *mv88e6131_probe(struct device *host_dev, int sw_addr)
return "Marvell 88E6131 (B2)";
if (ret_masked == PORT_SWITCH_ID_6131)
return "Marvell 88E6131";
+ if (ret_masked == PORT_SWITCH_ID_6185)
+ return "Marvell 88E6185";
}
return NULL;
@@ -110,6 +112,7 @@ static int mv88e6131_setup(struct dsa_switch *ds)
switch (ps->id) {
case PORT_SWITCH_ID_6085:
+ case PORT_SWITCH_ID_6185:
ps->num_ports = 10;
break;
case PORT_SWITCH_ID_6095: