]> Git Repo - linux.git/commit
net: mscc: ocelot: move NPI port configuration to DSA
authorVladimir Oltean <[email protected]>
Sat, 26 Sep 2020 19:32:01 +0000 (22:32 +0300)
committerDavid S. Miller <[email protected]>
Sat, 26 Sep 2020 21:17:58 +0000 (14:17 -0700)
commit2d44b097bbb9d0af0f3b94304fee4b639ab14171
treee2334284f3b44cb14e9364626b4b9595d7b07b99
parent435be28b0789b3aa679a993f47d5e480f291e604
net: mscc: ocelot: move NPI port configuration to DSA

Remove the ocelot_configure_cpu() function, which was in fact bringing
up 2 ports: the CPU port module, which both switchdev and DSA have, and
the NPI port, which only DSA has.

The (non-Ethernet) CPU port module is at a fixed index in the analyzer,
whereas the NPI port is selected through the "ethernet" property in the
device tree.

Therefore, the function to set up an NPI port is DSA-specific, so we
move it there, simplifying the ocelot switch library a little bit.

Cc: Horatiu Vultur <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: UNGLinuxDriver <[email protected]>
Signed-off-by: Vladimir Oltean <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/dsa/ocelot/felix.c
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot_vsc7514.c
include/soc/mscc/ocelot.h
This page took 0.063134 seconds and 4 git commands to generate.