commit | 14ef6ad22a2db28021e8ea8cd068fe5fcd88de7b | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Thu Apr 02 04:06:32 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 01 22:55:40 2015 -0400 |
tree | d576cd58263861dcd59f0c09d2736082fa08cb05 | |
parent | d198893e73c66ceb36cc1b1c3f261e82b7cc5700 [diff] |
net: dsa: mv88e6123_61_65: Determine and use number of switch ports Determine and use number of switch ports from chip ID instead of always using the maximum, and return error when an attempt is made to access a non-existing port. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>