]> 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)
commit744475d2d5858cb14cb457e101b73260d18443ea
treef0b96b9a8be1c7c28cc0d1ad8212c3a3ee85fe46
parentc22648bacf5d9509f7780a88fb4eb7e8346de5a0
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