]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48498f8ee006ba05f5d67c9a597fd60533aa8d8f
treef0b96b9a8be1c7c28cc0d1ad8212c3a3ee85fe46
parent2257d7f739307fb3c536dd3e658243dc7ea1c72a
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