]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: dsa: mv88e6xxx: introduce invalid_port_mask in mv88e6xxx_info
authorHubert Feurstein <h.feurstein@gmail.com>
Wed, 31 Jul 2019 08:23:48 +0000 (10:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Aug 2019 00:58:53 +0000 (17:58 -0700)
commitc857486a4b6d5c9250832315341e5889fdcb03c3
tree4dc1c38e6b26c7ee8a8400400275bfd0e88ab7dc
parent83c5ee315f73048d0c06c5736eb8ffe4ded2b7cc
net: dsa: mv88e6xxx: introduce invalid_port_mask in mv88e6xxx_info

With this it is possible to mark certain chip ports as invalid. This is
required for example for the MV88E6220 (which is in general a MV88E6250
with 7 ports) but the ports 2-4 are not routed to pins.

If a user configures an invalid port, an error is returned.

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h