]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6123_61_65: Determine and use number of switch ports
authorGuenter Roeck <linux@roeck-us.net>
Thu, 2 Apr 2015 02:06:32 +0000 (04:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 02:55:40 +0000 (22:55 -0400)
commit6d23f94cafc7655b5cdb166f23a56a1a94b6afbf
treed576cd58263861dcd59f0c09d2736082fa08cb05
parente226e0f99af3c07825d7eef79cc344e2a1451686
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>
drivers/net/dsa/mv88e6123_61_65.c