net: dsa: Allow default tag protocol to be overridden from DT
authorTobias Waldekranz <tobias@waldekranz.com>
Tue, 20 Apr 2021 18:53:10 +0000 (20:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Apr 2021 23:51:20 +0000 (16:51 -0700)
commitdeff710703d80c942c9c85a3f00a053025cfb1e4
treef0b96b9a8be1c7c28cc0d1ad8212c3a3ee85fe46
parent21e0b508c8d1fd7f1a4b91794391d1978431e083
net: dsa: Allow default tag protocol to be overridden from DT

Some combinations of tag protocols and Ethernet controllers are
incompatible, and it is hard for the driver to keep track of these.

Therefore, allow the device tree author (typically the board vendor)
to inform the driver of this fact by selecting an alternate protocol
that is known to work.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/dsa2.c