Skip to content

Commit

Permalink
net: dsa: Report known silicon revisions for Marvell 88E6060
Browse files Browse the repository at this point in the history
Report known silicon revisions when probing Marvell 88E6060 switches.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Guenter Roeck authored and David S. Miller committed Oct 30, 2014
1 parent 734cbb5 commit 3de6aa4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/dsa/mv88e6060.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ static char *mv88e6060_probe(struct device *host_dev, int sw_addr)

ret = mdiobus_read(bus, sw_addr + REG_PORT(0), 0x03);
if (ret >= 0) {
ret &= 0xfff0;
if (ret == 0x0600)
return "Marvell 88E6060 (A0)";
if (ret == 0x0601 || ret == 0x0602)
return "Marvell 88E6060 (B0)";
if ((ret & 0xfff0) == 0x0600)
return "Marvell 88E6060";
}

Expand Down

0 comments on commit 3de6aa4

Please sign in to comment.