OSDN Git Service

net: dsa: bcm_sf2: Disallow port 5 to be a DSA CPU port
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 22 Sep 2020 20:03:55 +0000 (13:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Sep 2020 00:51:15 +0000 (17:51 -0700)
commit8c28044097f28e27428922f957b08393f35c3e93
tree9d683f433a51818bc1ad6dc81c11f86673b2b764
parent9d33ffaaf3173a5850c1f8fa54ce43b47e80f182
net: dsa: bcm_sf2: Disallow port 5 to be a DSA CPU port

While the switch driver is written such that port 5 or 8 could be CPU
ports, the use case on Broadcom STB chips is to use port 8 exclusively.
The platform firmware does make port 5 comply to a proper DSA CPU port
binding by specifiying an "ethernet" phandle. This is undesirable for
now until we have an user-space configuration mechanism (such as
devlink) which could support dynamically changing the port flavor at
run time.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c